| Problem | card |
|---|---|
| User | nzx |
| Submission Time | 2026-04-09 09:28:39 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
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:23:20: error: no matching function for call to ‘std::deque<int>::erase(__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&)’
23 | 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: cand