Problem deliveroo
User Pan
Submission Time 2023-11-26 19:19:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

deliveroo.cpp:10:1: error: expected unqualified-id before ‘using’
10 | using namespace std;
| ^~~~~
deliveroo.cpp: In function ‘int32_t main()’:
deliveroo.cpp:15:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
15 | cin >> n;
| ^~~
| std::cin
In file included from deliveroo.cpp:2:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
deliveroo.cpp:8:12: error: ‘priority_queue’ was not declared in this scope; did you mean ‘std::priority_queue’?
8 | #define pq priority_queue<pair<int, int> >
| ^~~~~~~~~~~~~~
deliveroo.cpp:17:2: note: in expansion of macro ‘pq’
17 | pq left;
| ^~
In file included from /usr/include/c++/9/queue:64,
from deliveroo.cpp:3:
/usr/include/c++/9/bits/stl_queue.h:443:11: note: ‘std::priority