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

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:16:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
16 | for (long long i=0; x[i]!="."; i++) {
| ^~~
card.cpp:17:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
17 | if (x[i]=="A") {
| ^~~
card.cpp:21:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
21 | else if (x[i]=="B") {
| ^~~
card.cpp:22:31: error: no matching function for call to ‘std::deque<int>::push_back(std::_Deque_iterator<int, int&, int*>::_Self)’
22 | arr.push_back(arr.begin()+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:1569:7: note: cand