Problem gotoschool
User rhea61
Submission Time 2023-11-08 15:20:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gotoschool.cpp:5:2: error: ‘cin’ does not name a type; did you mean ‘sin’?
5 | cin >> n;
| ^~~
| sin
gotoschool.cpp:6:2: error: expected unqualified-id before ‘for’
6 | for (int i=1; i<=n; i++) {
| ^~~
gotoschool.cpp:6:16: error: ‘i’ does not name a type
6 | for (int i=1; i<=n; i++) {
| ^
gotoschool.cpp:6:22: error: ‘i’ does not name a type
6 | for (int i=1; i<=n; i++) {
| ^
gotoschool.cpp:11:2: error: expected unqualified-id before ‘for’
11 | for (int i=1; i<=n; it+) {
| ^~~
gotoschool.cpp:11:16: error: ‘i’ does not name a type
11 | for (int i=1; i<=n; it+) {
| ^
gotoschool.cpp:11:22: error: ‘it’ does not name a type; did you mean ‘int’?
11 | for (int i=1; i<=n; it+) {
| ^~
| int
gotoschool.cpp:16:2: error: expect