Problem | leave |
---|---|
User | isaackhong |
Submission Time | 2023-04-20 21:21:16 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
leave.cpp: In function ‘int main()’:
leave.cpp:16:32: error: expected ‘;’ before ‘}’ token
16 | q.push_back(person)
| ^
| ;
17 | } else if (command == 2){
| ~
leave.cpp:19:22: error: cannot convert ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’ to ‘int’ in assignment
19 | it = find(q.begin(), q.end(), person);
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| __gnu_cxx::__normal_iterator<int*, std::vector<int> >
leave.cpp:20:23: error: no matching function for call to ‘std::vector<int>::erase(int&)’
20 | q.erase(it);
| ^
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,