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