Problem | gotoschool |
---|---|
User | rhea61 |
Submission Time | 2023-11-08 11:54:12 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gotoschool.cpp:5:8: error: ‘cin’ does not name a type; did you mean ‘sin’?
5 | int n; cin >> n; // read in n, the size of the array
| ^~~
| sin
gotoschool.cpp:6:10: error: array bound is not an integer constant before ‘]’ token
6 | int arr[n]; // declare array of size n
| ^
gotoschool.cpp:7:1: error: expected unqualified-id before ‘for’
7 | for (int i = 0; i < n; i++) {
| ^~~
gotoschool.cpp:7:17: error: ‘i’ does not name a type
7 | for (int i = 0; i < n; i++) {
| ^
gotoschool.cpp:7:24: error: ‘i’ does not name a type
7 | for (int i = 0; i < n; i++) {
| ^
gotoschool.cpp:10:1: error: expected unqualified-id before ‘for’
10 | for (int i = 0; i < n; i++) {
| ^~~
gotoschool.cpp:10:17: error: ‘i’ does not name a type
10 | for (int i = 0; i < n; i++) {
| ^
g