Problem countalp
User PlayVoltz
Submission Time 2023-05-17 22:02:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

countalp.cpp: In function ‘int main()’:
countalp.cpp:8:22: error: expected ‘;’ before ‘i’
8 | for (int i = 0; i<na i++){
| ^~
| ;
countalp.cpp:9:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
9 | if (ss[i]=="a"){
| ^~~
countalp.cpp:12:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
12 | else if (ss[i]=="b"){
| ^~~
countalp.cpp:15:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
15 | else if (ss[i]=="c"){
| ^~~
countalp.cpp:18:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
18 | else if (ss[i]=="d"){
| ^~~
countalp.cpp:21:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
21 | else if (ss[i]=="e"){<