train.cpp: In function 'void BFS(int)':
train.cpp:14:25: error: 'n' was not declared in this scope
14 | for (int i = 0; i < n; i++) {
| ^
train.cpp:20:25: error: 'n' was not declared in this scope
20 | for (int i = 0; i < n; i++)
| ^
train.cpp:27:42: error: overloaded function with no contextual type information
27 | auto chg = (isAlice[cur] ? max : min);
| ^~~
train.cpp:27:42: error: overloaded function with no contextual type information
train.cpp: In function 'std::vector<int> who_wins(std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
train.cpp:40:9: warning: unused variable 'myStations' [-Wunused-variable]
40 | int myStations = 0;
| ^~~~~~~~~~