railroad.cpp: In function 'long long int plan_roller_coaster(std::vector<int>, std::vector<int>)':
railroad.cpp:24:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::map<int, int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | for(int i=1;i<=mp.size();i++)p[i]=i;
| ~^~~~~~~~~~~
railroad.cpp:29:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
29 | for(int i=0;i<v.size();){
| ~^~~~~~~~~
railroad.cpp:31:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | while(i<v.size()&&v[i].first==sp){
| ~^~~~~~~~~
railroad.cpp:36: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]
36 | else if(val==0&&i!=v.size()-1)un(ids[i],ids[i+1]);
| ~^~~~~~~~~~~~
railroad.cpp:38:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::map<int, int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | for(int i=1;i<=mp.size();i++){
| ~^~~~~~~~~~~