Problem | judgequeue |
---|---|
User | Winstone |
Submission Time | 2025-08-23 20:40:43 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
judgequeue.cpp:2:5: error: ‘list’ does not name a type
2 | list<int> q;
| ^~~~
judgequeue.cpp:3:5: error: ‘unordered_map’ does not name a type
3 | unordered_map<int, list<int>::iterator> pos;
| ^~~~~~~~~~~~~
judgequeue.cpp: In member function ‘void JudgeQueue::init(int, int)’:
judgequeue.cpp:7:9: error: ‘q’ was not declared in this scope
7 | q.clear();
| ^
judgequeue.cpp:8:9: error: ‘pos’ was not declared in this scope
8 | pos.clear();
| ^~~
judgequeue.cpp: In member function ‘void JudgeQueue::push_front(int)’:
judgequeue.cpp:12:9: error: ‘q’ was not declared in this scope
12 | q.push_front(subID);
| ^
judgequeue.cpp:13:9: error: ‘pos’ was not declared in this scope
13 | pos[subID] = q.begin();
| ^~~
judgequeue.cpp: In member function ‘void JudgeQueue::push_back(int)’:
j