There is simply no excuse for Cats not having water,and an unclean box.
Imagine if you will,living with an overflowing toilet.
Actually worse as The Cats sense of smell is that strong.
I hope he does not make trouble for you with your Building Superintendant.
You did the Right Thing and The Found Cats Meeeow For You!!