Problem | potatoqueue |
---|---|
User | hwy |
Submission Time | 2023-06-10 20:47:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
potatoqueue.cpp:5:1: error: ‘deque’ does not name a type
5 | deque<int> q;
| ^~~~~
potatoqueue.cpp:6:1: error: ‘string’ does not name a type
6 | string cmd;
| ^~~~~~
potatoqueue.cpp: In function ‘void init()’:
potatoqueue.cpp:10:5: error: ‘q’ was not declared in this scope
10 | q.clear();
| ^
potatoqueue.cpp:11:2: error: ‘cmd’ was not declared in this scope
11 | cmd = "";
| ^~~
potatoqueue.cpp: In function ‘void join(int)’:
potatoqueue.cpp:16:5: error: ‘q’ was not declared in this scope
16 | q.push_back(H);
| ^
potatoqueue.cpp: In function ‘void serve()’:
potatoqueue.cpp:20:5: error: ‘q’ was not declared in this scope
20 | q.pop_front();
| ^
potatoqueue.cpp: In function ‘int query(int)’:
potatoqueue.cpp:28:13: error: ‘q’ was not declared in this scope
28 | if (q[i] > q[N-1])
| ^