worst_reporter3.cpp:15:7: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
15 | main () {
| ^
worst_reporter3.cpp: In function 'int main()':
worst_reporter3.cpp:33: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]
33 | for (int i = 0; i < v.size(); ++i) {
| ~~^~~~~~~~~~
worst_reporter3.cpp:45: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]
45 | for (int i = 0; i < v.size(); ++i) {
| ~~^~~~~~~~~~
worst_reporter3.cpp:58: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]
58 | for (int j = 0; j < v.size(); ++j) {
| ~~^~~~~~~~~~
worst_reporter3.cpp:49:15: warning: variable 'sum' set but not used [-Wunused-but-set-variable]
49 | int t, l, r, sum, ans, L, R;
| ^~~