school.cpp: In function 'bool fr(std::pair<long long int, long long int>, std::pair<long long int, long long int>)':
school.cpp:7:45: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
return l.first>r.first||l.first==r.first&&l.second<r.second;
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
school.cpp: In function 'bool sc(std::pair<long long int, long long int>, std::pair<long long int, long long int>)':
school.cpp:10:49: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
return l.second>r.second||l.second==r.second&&l.first<r.first;
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
school.cpp: At global scope:
school.cpp:12:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main(){
^
school.cpp: In function 'int main()':
school.cpp:13:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld%lld",&n,&a,&b);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
school.cpp:14:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i=1;i<=n;i++)scanf("%lld%lld",&v[i].first,&v[i].second);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~