| Problem | trainorbus |
|---|---|
| User | onion |
| Submission Time | 2026-03-22 17:01:09 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
trainorbus.cpp: In function ‘int main()’:
trainorbus.cpp:3:5: error: ‘cin’ was not declared in this scope
3 | cin >> n;
| ^~~
trainorbus.cpp:5:5: error: ‘vector’ was not declared in this scope
5 | vector<long long> a(n), b(n);
| ^~~~~~
trainorbus.cpp:5:12: error: expected primary-expression before ‘long’
5 | vector<long long> a(n), b(n);
| ^~~~
trainorbus.cpp:9:16: error: ‘a’ was not declared in this scope
9 | cin >> a[i];
| ^
trainorbus.cpp:14:16: error: ‘b’ was not declared in this scope
14 | cin >> b[i];
| ^
trainorbus.cpp:21:27: error: ‘a’ was not declared in this scope
21 | total_time += min(a[i], b[i]);
| ^
trainorbus.cpp:21:33: error: ‘b’ was not declared in this scope
21 | total_time += min(a[i], b[i]);