train.cpp: In function 'std::vector<int> who_wins(std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
train.cpp:15:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
15 | for(int i=0;i<r.size();i++){if(r[i]==1){chargers.push_back(i);}}
| ~^~~~~~~~~
train.cpp:17:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | for (int i = 0; i < u.size(); i++){
| ~~^~~~~~~~~~
train.cpp:25:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
25 | if(r[i]=1){