school.cpp: In function 'bool cmp(std::pair<long long int, long long int>, std::pair<long long int, long long int>)':
school.cpp:13:10: warning: statement has no effect [-Wunused-value]
a.sc > b.sc;
^
school.cpp:14:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
school.cpp: At global scope:
school.cpp:20:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main()
^
school.cpp: In function 'int main()':
school.cpp:22:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("school.in" , "r" , stdin );
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
school.cpp:23:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("school.out" , "w" , stdout );
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
school.cpp:43:11: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result]
system("cls");
~~~~~~^~~~~~~