Problem countalp
User MegaG
Submission Time 2025-11-03 10:22:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

countalp.cpp: In function ‘int main()’:
countalp.cpp:28:6: error: redeclaration of ‘long long int n’
28 | int n = 0;
| ^
countalp.cpp:10:6: note: ‘long long int n’ previously declared here
10 | int n;
| ^
countalp.cpp:33:6: error: conflicting declaration ‘long long int s’
33 | int s = 0;
| ^
countalp.cpp:11:9: note: previous declaration as ‘std::string s’
11 | string s;
| ^
countalp.cpp:97:5: error: no ‘operator++(int)’ declared for postfix ‘++’ [-fpermissive]
97 | s++;
| ~^~
countalp.cpp:121:101: error: expected primary-expression before ‘<<’ token
121 | cout << a << "\n" << b << "\n" << c << "\n" << d << "\n" << e << "\n" << f << "\n" << g << "\n" << << "\n" << h << "\n" << i << "\n" << j << "\n" << k << "\