Problem card
User AltheaZ
Submission Time 2023-06-22 11:40:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:15:24: error: cannot convert ‘std::__cxx11::basic_string<char>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >’} to ‘int’ in initialization
15 | for (int j=moves.begin();j!=moves.end();j++){
| ~~~~~~~~~~~^~
| |
| std::__cxx11::basic_string<char>::iterator {aka __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >}
card.cpp:15:28: error: no match for ‘operator!=’ (operand types are ‘int’ and ‘std::__cxx11::basic_string<char>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >’})
15 | for (int j=moves.begin();j!=moves.end();j++){
| ~^~~~~~~~~~~~~
| | |
| int std::__cxx11::bas