joi2019_ho_t2.cpp:11:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
11 | main(){
| ^~~~
joi2019_ho_t2.cpp: In function 'int main()':
joi2019_ho_t2.cpp:33:17: 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]
33 | for(int i = 0;i<b.size()-1;i++){
| ~^~~~~~~~~~~
joi2019_ho_t2.cpp:44:11: warning: comparison of integer expressions of different signedness: 'long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
44 | if(pos == lis.size())lis.push_back(j);
| ~~~~^~~~~~~~~~~~~
joi2019_ho_t2.cpp:47:19: warning: comparison of integer expressions of different signedness: 'std::vector<long long int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
47 | while(lis.size()>len)lis.pop_back();
| ~~~~~~~~~~^~~~