Problem gotoschool
User Anonymous35V
Submission Time 2023-11-08 11:43:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gotoschool.cpp: In function ‘int32_t main()’:
gotoschool.cpp:7:10: error: expected ‘;’ before ‘for’
7 | cin >> n
| ^
| ;
8 | for (int i = 0; i < n; i++) {
| ~~~
gotoschool.cpp:8:19: error: ‘i’ was not declared in this scope
8 | for (int i = 0; i < n; i++) {
| ^
gotoschool.cpp:12:1: error: expected initializer before ‘for’
12 | for (int i = 0; i < n; i++) {
| ^~~