Painters partition problem.....not passing all test cases?

what is the error in my code

I have edited your code… Try to submit now…

@yuktimutreja01
#define int long long int

it was already there at the top of the code
then why it wasn’t running ???

The error was bcz it was getting treated as normal int only… bcz you defined the long long int macro as int only… Its always better to use a different name macro … Thts why it was not passing all test cases…