Problem firstabc
User Red123
Submission Time 2025-07-29 16:31:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

firstabc.cpp: In function ‘int main()’:
firstabc.cpp:10:9: error: expected initializer before ‘==’ token
10 | bool a == false;
| ^~
firstabc.cpp:11:9: error: expected initializer before ‘==’ token
11 | bool b == false;
| ^~
firstabc.cpp:12:9: error: expected initializer before ‘==’ token
12 | bool c == false;
| ^~
firstabc.cpp:14:13: error: no match for ‘operator==’ (operand types are ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} and ‘char’)
14 | if(arr[i] == 'A'){
| ~~~~~~ ^~ ~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from firstabc.cpp:1:
/usr/include/c++/9/bits/regex.h:1026:5: note: candidate: ‘template<class _B