Problem trainorbus
User huyleisme
Submission Time 2025-02-23 09:19:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

trainorbus.cpp:2:7: error: expected nested-name-specifier before ‘namepsace’
2 | using namepsace std;
| ^~~~~~~~~
trainorbus.cpp: In function ‘int main()’:
trainorbus.cpp:4:9: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
4 | int n; cin >> n;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
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:5:2: error: ‘vi’ was not declared in this scope
5 | vi a(n), b(n);
| ^~
trainorbus.cpp:6:16: error: ‘a’ was not declared in this scope
6 | for (auto &i: a) cin >> i;
| ^
trainorbus.cpp:7:16: error: ‘b’ was not declared in this scope
7 | for (auto &i: b) cin >>