Problem | trains |
---|---|
User | Water |
Submission Time | 2024-02-22 15:04:51 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
trains.cpp:6:2: error: expected initializer before ‘ios_base’
6 | ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
| ^~~~~~~~
trains.cpp:6:32: error: ‘cin’ does not name a type; did you mean ‘sin’?
6 | ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
| ^~~
| sin
trains.cpp:6:44: error: ‘cout’ does not name a type
6 | ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
| ^~~~
trains.cpp:7:12: error: ‘cin’ does not name a type; did you mean ‘sin’?
7 | int n; cin >> n;
| ^~~
| sin
trains.cpp:8:12: error: array bound is not an integer constant before ‘]’ token
8 | int h[n], path[n];
| ^
trains.cpp:8:21: error: array bound is not an integer constant before ‘]’ token
8 | int h[n], path[n];
|