Problem firstabc
User mentcletan
Submission Time 2024-02-11 22:04:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

firstabc.cpp: In function ‘int main()’:
firstabc.cpp:12: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
12 | for(int i = z.begin(); i != z.end(); i++){
| ~~~~~~~^~
| |
| std::__cxx11::basic_string<char>::iterator {aka __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >}
firstabc.cpp:12:30: 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> >’})
12 | for(int i = z.begin(); i != z.end(); i++){
| ~ ^~ ~~~~~~~
| | |
| int std::__c