| Problem | trainorbus |
|---|---|
| User | TK |
| Submission Time | 2026-01-24 14:20:10 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
trainorbus.cpp: In function ‘int main()’:
trainorbus.cpp:10:14: error: redeclaration of ‘std::vector<int> train’
10 | vector<int> train(place);
| ^~~~~
trainorbus.cpp:9:14: note: ‘std::vector<int> train’ previously declared here
9 | vector<int> train(place);
| ^~~~~
trainorbus.cpp:12:16: error: ‘trian’ was not declared in this scope; did you mean ‘train’?
12 | cin >> trian[i];
| ^~~~~
| train
trainorbus.cpp:15:10: error: ‘bus’ was not declared in this scope
15 | cin >> bus[i];
| ^~~
trainorbus.cpp:18:25: error: ‘bus’ was not declared in this scope
18 | if (train[i] >= bus[i]) {
| ^~~
trainorbus.cpp:26:13: error: expected ‘}’ at end of input
26 | return 0;
| ^
trainorbus.cpp:5:12: note: to match this ‘{’