Problem card
User nzx
Submission Time 2026-04-09 09:29:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:11:22: error: ‘x’ was not declared in this scope
11 | for (long long i=0; x[i]!="."; i++) {
| ^
card.cpp:18:20: error: no matching function for call to ‘std::deque<int>::erase(__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&)’
18 | arr.erase(arr[1]);
| ^
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:1807:7: note: candidate: ‘std::deque<_Tp, _Alloc>::iterator std::deque<_Tp, _Alloc>::erase(std::deque<_Tp, _Alloc>::const_iterator) [with _Tp = int; _Alloc = std::allocator<int>; std::deque<_Tp, _Alloc>::iterator = std::_Deque_iterator<int, int&, int*>; std::deque<_Tp, _Alloc>::const_iterator = std::_Deque_iterator<int, const int&