sob.cpp:37:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
37 | main()
| ^~~~
sob.cpp: In function 'int main()':
sob.cpp:40:8: error: 'n' was not declared in this scope
40 | if(n+m<=1000){
| ^
sob.cpp:40:10: error: 'm' was not declared in this scope; did you mean 'mt'?
40 | if(n+m<=1000){
| ^
| mt
sob.cpp:41:13: error: redeclaration of 'long long int n'
41 | int n,m;
| ^
sob.cpp:40:8: note: '<typeprefixerror>n' previously declared here
40 | if(n+m<=1000){
| ^
sob.cpp:41:15: error: redeclaration of 'long long int m'
41 | int n,m;
| ^
sob.cpp:40:10: note: '<typeprefixerror>m' previously declared here
40 | if(n+m<=1000){
| ^
sob.cpp:96:22: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
96 | for(int i=0;i<v.size();i++)
| ~^~~~~~~~~