| Problem | trainorbus |
|---|---|
| User | TK |
| Submission Time | 2026-01-24 14:18:20 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
trainorbus.cpp: In function ‘int main()’:
trainorbus.cpp:8:20: error: ‘train’ was not declared in this scope
8 | vector<int> table(train);
| ^~~~~
trainorbus.cpp:9:14: error: redeclaration of ‘std::vector<int> table’
9 | vector<int> table(bus);
| ^~~~~
trainorbus.cpp:8:14: note: ‘std::vector<int> table’ previously declared here
8 | vector<int> table(train);
| ^~~~~
trainorbus.cpp:9:20: error: ‘bus’ was not declared in this scope
9 | vector<int> table(bus);
| ^~~
trainorbus.cpp:11:16: error: ‘trian’ was not declared in this scope
11 | cin >> trian[i];
| ^~~~~
trainorbus.cpp:23:14: error: expected ‘}’ at end of input
23 | cout << cost;
| ^
trainorbus.cpp:16:34: note: to match this ‘{’
16 | for (int i = 0; i < place