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