Problem countalp
User PGisnotnice5
Submission Time 2026-05-11 08:24:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

countalp.cpp: In function ‘int main()’:
countalp.cpp:12:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
12 | if(a[i]=="a")
| ^~~
countalp.cpp:16:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
16 | else if(a[i]=="b")
| ^~~
countalp.cpp:20:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
20 | else if(a[i]=="c")
| ^~~
countalp.cpp:24:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
24 | else if(a[i]=="d")
| ^~~
countalp.cpp:28:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
28 | else if(a[i]=="e")
| ^~~
countalp.cpp:32:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
32 | else if(a[i]=="f")
|