railroad.cpp: In function 'long long int plan_roller_coaster(std::vector<int>, std::vector<int>)':
railroad.cpp:22:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::map<int, int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | for (int i=1; i<=mp.size(); i++) dsu[i]=i;
| ~^~~~~~~~~~~
railroad.cpp:24:20: 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++)
| ~^~~~~~~~~~
railroad.cpp:30:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::map<int, int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
30 | for (int i=1; i<=mp.size(); i++) if (find(1)!=find(i)) ans=1;
| ~^~~~~~~~~~~