Problem countalp
User justin271828
Submission Time 2023-06-14 13:41:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

countalp.cpp: In function ‘int main()’:
countalp.cpp:37:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
37 | if (s[i] == "a") {
| ^~~
countalp.cpp:40:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
40 | else if (s[i] == "a") {
| ^~~
countalp.cpp:43:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
43 | else if (s[i] == "a") {
| ^~~
countalp.cpp:46:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
46 | else if (s[i] == "a") {
| ^~~
countalp.cpp:49:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
49 | else if (s[i] == "a") {
| ^~~
countalp.cpp:52:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
52 | el