Problem | leave |
---|---|
User | Jinxuan |
Submission Time | 2024-01-04 10:32:59 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
leave.cpp:1:1: error: ‘include’ does not name a type
1 | include <bits/stdc++.h>
| ^~~~~~~
leave.cpp: In function ‘int main()’:
leave.cpp:4:9: error: ‘cin’ was not declared in this scope
4 | int n; cin >> n;
| ^~~
leave.cpp:5:2: error: ‘queue’ was not declared in this scope
5 | queue<int> q;
| ^~~~~
leave.cpp:5:8: error: expected primary-expression before ‘int’
5 | queue<int> q;
| ^~~
leave.cpp:6:2: error: ‘set’ was not declared in this scope
6 | set<int> leave;
| ^~~
leave.cpp:6:6: error: expected primary-expression before ‘int’
6 | set<int> leave;
| ^~~
leave.cpp:11:4: error: ‘q’ was not declared in this scope
11 | q.push(b);
| ^
leave.cpp:12:8: error: ‘leave’ was not declared in this scope
12 | if (leave.find(b)!=leave.end()) leave.erase(leave.find(b));
| ^~