Problem gotoschool
User Anonymous35V
Submission Time 2023-11-08 11:44:13
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 ‘}’ token
7 | cin >> n }
| ^~
| ;
gotoschool.cpp: At global scope:
gotoschool.cpp:8:3: error: expected unqualified-id before ‘for’
8 | for (int i = 0; i < n; i++) {
| ^~~
gotoschool.cpp:8:19: error: ‘i’ does not name a type
8 | for (int i = 0; i < n; i++) {
| ^
gotoschool.cpp:8:26: error: ‘i’ does not name a type
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++) {
| ^~~
gotoschool.cpp:12:17: error: ‘i’ does not name a type
12 | for (int i = 0; i < n; i++) {
| ^
gotoschool.cpp:12:24: error: ‘i’ does not name a type
12 | for (int i = 0; i < n; i++) {
|