Problem leave
User IWKR
Submission Time 2023-01-04 10:43:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

leave.cpp: In function ‘int main()’:
leave.cpp:11:20: error: ‘mp’ was not declared in this scope
11 | while (mp[q.front()] != 1) {
| ^~
leave.cpp:11:25: error: request for member ‘front’ in ‘q’, which is of non-class type ‘int’
11 | while (mp[q.front()] != 1) {
| ^~~~~
leave.cpp:12:19: error: request for member ‘pop’ in ‘q’, which is of non-class type ‘int’
12 | q.pop();
| ^~~
leave.cpp:14:23: error: request for member ‘front’ in ‘q’, which is of non-class type ‘int’
14 | cout << q.front() << " ";
| ^~~~~
leave.cpp:15:6: error: request for member ‘pop’ in ‘q’, which is of non-class type ‘int’
15 | q.pop();
| ^~~
leave.cpp:19:6: error: request for member ‘push’ in ‘q’, which is of non-class type ‘int’
19 | q.push(b);
| ^