Problem firstabc
User AaravRastogi
Submission Time 2025-12-03 12:24:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

firstabc.cpp: In function ‘int main()’:
firstabc.cpp:7:7: error: expected ‘;’ before ‘cin’
7 | j = 1
| ^
| ;
8 |
9 | cin >> n;
| ~~~
firstabc.cpp:19:6: error: expected ‘;’ before ‘}’ token
19 | ++j
| ^
| ;
20 | }
| ~
firstabc.cpp:22:10: error: ‘i’ was not declared in this scope
22 | cout << i + 1;
| ^