school.cpp: In function 'int64_t val()':
school.cpp:17:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long int, long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | for (int i = 0; i < music.size(); i++) {
| ~~^~~~~~~~~~~~~~
school.cpp:20:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long int, long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
20 | for (int i = 0; i < sports.size(); i++) {
| ~~^~~~~~~~~~~~~~~
school.cpp: In function 'int main()':
school.cpp:37:23: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<long int, long int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
37 | if (music.size() < M or sports.size() < S) {
| ~~~~~~~~~~~~~^~~
school.cpp:37:44: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<long int, long int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
37 | if (music.size() < M or sports.size() < S) {
| ~~~~~~~~~~~~~~^~~
school.cpp:38:24: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<long int, long int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
38 | if (music.size() < M) {
| ~~~~~~~~~~~~~^~~
school.cpp:40:32: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<long int, long int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
40 | } else if (sports.size() < S) {
| ~~~~~~~~~~~~~~^~~
school.cpp:45:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long int, long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
45 | for (int i = 0; i < music.size(); i++) {
| ~~^~~~~~~~~~~~~~
school.cpp:51:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long int, long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
51 | for (int i = 0; i < sports.size(); i++) {
| ~~^~~~~~~~~~~~~~~
school.cpp:60:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long int, long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
60 | for (int i = 0; i < music.size(); i++) {
| ~~^~~~~~~~~~~~~~
school.cpp:68:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long int, long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
68 | for (int i = 0; i < sports.size(); i++) {
| ~~^~~~~~~~~~~~~~~
school.cpp:77:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long int, long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
77 | for (int i = 0; i < music.size(); i++) {
| ~~^~~~~~~~~~~~~~
school.cpp:78:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long int, long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
78 | for (int j = 0; j < sports.size(); j++) {
| ~~^~~~~~~~~~~~~~~