Problem firstabc
User Daddy
Submission Time 2023-12-06 09:20:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

firstabc.cpp: In function ‘int main()’:
firstabc.cpp:7:18: error: expected ‘;’ before ‘for’
7 | cin.getline(s,n)
| ^
| ;
8 | for(int i=0;i<n;i++){
| ~~~
firstabc.cpp:8:14: error: ‘i’ was not declared in this scope
8 | for(int i=0;i<n;i++){
| ^