mushrooms.cpp: In function 'int main()':
mushrooms.cpp:35:7: warning: unused variable 'msh' [-Wunused-variable]
35 | int msh = 0;
| ^~~
mushrooms.cpp:71:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
71 | for( int i = 0; i < msh.size(); i++ ) {
| ~~^~~~~~~~~~~~
mushrooms.cpp:75:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
75 | if( pos >= 0 && pos < spr.size() ) {
| ~~~~^~~~~~~~~~~~
mushrooms.cpp:77:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
77 | for( int j = pos; j < spr.size(); j++ ) {
| ~~^~~~~~~~~~~~
mushrooms.cpp:27:8: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
27 | freopen("input.txt", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
mushrooms.cpp:28:8: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
28 | freopen("output.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~