Problem cpicsort
User Elias
Submission Time 2026-06-23 15:26:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cpicsort.cpp:2:16: error: expected identifier before ‘;’ token
2 | using namespace; std;
| ^
cpicsort.cpp:2:18: error: ‘std’ does not name a type
2 | using namespace; std;
| ^~~
cpicsort.cpp: In function ‘int main()’:
cpicsort.cpp:6:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
6 | cin >> A;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from cpicsort.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
cpicsort.cpp:7:2: error: ‘vector’ was not declared in this scope
7 | vector<int> A(N);
| ^~~~~~
cpicsort.cpp:7:2: note: suggested alternatives:
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9