Problem platonic2
User khai
Submission Time 2025-06-19 11:21:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

platonic2.cpp:3:17: error: ‘stdc’ is not a namespace-name
3 | using namespace stdc;
| ^~~~
platonic2.cpp: In function ‘int main()’:
platonic2.cpp:6:5: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
6 | cin >> N >> K;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from platonic2.cpp:2:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
platonic2.cpp:12:5: error: ‘sort’ was not declared in this scope; did you mean ‘std::sort’?
12 | sort(A, A + N);
| ^~~~
| std::sort
In file included from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from platonic2.cpp:2:
/usr/include/c++/9