Problem card
User christal
Submission Time 2023-12-11 16:57:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:24:37: error: expected ‘,’ or ‘;’ before ‘::’ token
24 | vector<char> j(x.begin(), x.end())::const_reverse_iterator itr=str.crend()-1;
| ^~
card.cpp:25:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
25 | if(j[i]=="A"){
| ^~~
card.cpp:27:19: error: no matching function for call to ‘std::vector<int>::pop_back(int&)’
27 | card.pop_back(z);
| ^
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from card.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:1222:7: note: candidate: ‘void std::v