school.cpp: In function 'int main()':
school.cpp:67:17: warning: comparison of integer expressions of different signedness: 'std::priority_queue<int, std::vector<int>, std::greater<int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
67 | if ( S.size() > m1 ) sum -= S.top() , S.pop() ;
| ~~~~~~~~~^~~~
school.cpp:68:17: warning: comparison of integer expressions of different signedness: 'std::priority_queue<int, std::vector<int>, std::greater<int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
68 | if ( S.size() == m1 ) L [i] = sum ;
| ~~~~~~~~~^~~~~
school.cpp:77:17: warning: comparison of integer expressions of different signedness: 'std::priority_queue<int, std::vector<int>, std::greater<int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
77 | if ( S.size() > m2 ) sum -= S.top() , S.pop() ;
| ~~~~~~~~~^~~~
school.cpp:78:17: warning: comparison of integer expressions of different signedness: 'std::priority_queue<int, std::vector<int>, std::greater<int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
78 | if ( S.size() == m2 ) R [i] = sum ;
| ~~~~~~~~~^~~~~
school.cpp: In function 'void rf()':
school.cpp:31:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
31 | freopen ("bai1.inp","r",stdin) ;
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~