Problem card
User huangchengcheng
Submission Time 2026-04-25 10:41:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:8:8: error: expected ‘;’ before ‘m’
8 | cin m>>k >> ins;
| ^~
| ;
card.cpp:9:5: error: ‘s’ was not declared in this scope
9 | s.pop_back();
| ^
card.cpp:14:39: error: expected ‘)’ before ‘{’ token
14 | for (int i=0;i<(int)ins.size();i++{
| ~ ^
| )
card.cpp:16:34: error: no matching function for call to ‘std::deque<int>::push_back(<unresolved overloaded function type>)’
16 | dq.push_back(dq.front);
| ^
In file included from /usr/include/c++/9/deque:67,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:68,
from card.cpp:1:
/usr/include/c++/9/bits/stl_deque.h:1569:7: note: candidate: ‘void std::deque<_Tp, _Alloc>::push_back(c