Main.cpp: In function 'std::pair<long long int, long long int> operator<(const std::pair<long long int, long long int>&, const std::pair<long long int, long long int>&)':
Main.cpp:21:60: error: could not convert '((((long long int)x.std::pair<long long int, long long int>::first) < ((long long int)y.std::pair<long long int, long long int>::first)) || ((((long long int)x.std::pair<long long int, long long int>::first) == ((long long int)y.std::pair<long long int, long long int>::first)) && (((long long int)x.std::pair<long long int, long long int>::second) > ((long long int)y.std::pair<long long int, long long int>::second))))' from 'bool' to 'std::pair<long long int, long long int>'
21 | pii operator<(const pii &x,const pii &y){return (x.F < y.F || (x.F == y.F && x.S > y.S));}
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| bool
Main.cpp: In function 'void solve()':
Main.cpp:30:14: error: 'cmp' was not declared in this scope; did you mean 'bcmp'?
30 | sort(all(a),cmp);
| ^~~
| bcmp