Problem leave
User Henries
Submission Time 2024-11-18 23:47:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

leave.cpp: In function ‘int main()’:
leave.cpp:21:19: error: request for member ‘front’ in ‘q’, which is of non-class type ‘long long int’
21 | while(s.find(q.front()) != s.end()){
| ^~~~~
leave.cpp:22:7: error: request for member ‘pop’ in ‘q’, which is of non-class type ‘long long int’
22 | q.pop();
| ^~~
leave.cpp:23:15: error: request for member ‘front’ in ‘q’, which is of non-class type ‘long long int’
23 | s.erase(q.front);
| ^~~~~
leave.cpp:25:14: error: request for member ‘front’ in ‘q’, which is of non-class type ‘long long int’
25 | cout << q.front() << ' ';
| ^~~~~
leave.cpp:26:6: error: request for member ‘pop’ in ‘q’, which is of non-class type ‘long long int’
26 | q.pop();
| ^~~