stations.cpp: In function 'int find_next_station(int, int, std::vector<int>)':
stations.cpp:33:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
33 | if(t>s || c.size()>1 && t<c[1]) return c[0];
stations.cpp:34:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
34 | for(int i=2; i<c.size(); ++i) if(c[i]>t) return c[i-1];
| ~^~~~~~~~~
stations.cpp:38:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | for(int i=0; i<c.size()-1; ++i) if(c[i]>=t) return c[i];
| ~^~~~~~~~~~~
stations.cpp:41:1: warning: control reaches end of non-void function [-Wreturn-type]
41 | }
| ^