Problem lunchbox
User claireau
Submission Time 2023-11-15 13:40:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp:2:1: error: ‘use’ does not name a type
2 | use nameplace std;
| ^~~
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:6:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
6 | cin >> N;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from lunchbox.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
lunchbox.cpp:10:2: error: ‘reverse’ was not declared in this scope; did you mean ‘std::reverse’?
10 | reverse(pq[m]);
| ^~~~~~~
| std::reverse
In file included from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from lunchbox.cpp:1:
/usr/include/c++/9/pstl/glue_algorithm_defs.h:249:1: note: ‘std::r