| Problem | trainorbus |
|---|---|
| User | onion |
| Submission Time | 2026-03-22 17:02:38 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
trainorbus.cpp: In function ‘int main()’:
trainorbus.cpp:5:5: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
5 | cin >> n;
| ^~~
| std::cin
In file included from trainorbus.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
trainorbus.cpp:7:5: error: ‘vector’ was not declared in this scope
7 | vector<long long> a(n), b(n);
| ^~~~~~
trainorbus.cpp:7:12: error: expected primary-expression before ‘long’
7 | vector<long long> a(n), b(n);
| ^~~~
trainorbus.cpp:11:16: error: ‘a’ was not declared in this scope
11 | cin >> a[i];
| ^
trainorbus.cpp:16:16: error: ‘b’ was not declared in this scope
16 | cin >> b[i];
| ^
trainorbus.cpp:23:27: