Problem | sumint |
---|---|
User | yqiiiiiii |
Submission Time | 2025-06-16 09:01:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp:2:1: error: ‘cin’ does not name a type
2 | cin >> n;
| ^~~
sumint.cpp:3:10: error: array bound is not an integer constant before ‘]’ token
3 | int arr[n];
| ^
sumint.cpp:4:1: error: expected unqualified-id before ‘for’
4 | for(int i = 0; i < n, i++){
| ^~~
sumint.cpp:4:16: error: ‘i’ does not name a type
4 | for(int i = 0; i < n, i++){
| ^
sumint.cpp:8:1: error: expected unqualified-id before ‘for’
8 | for(int j = 0; i < n; i++){
| ^~~
sumint.cpp:8:16: error: ‘i’ does not name a type
8 | for(int j = 0; i < n; i++){
| ^
sumint.cpp:8:23: error: ‘i’ does not name a type
8 | for(int j = 0; i < n; i++){
| ^
sumint.cpp:11:1: error: ‘cout’ does not name a type
11 | cout << v;
| ^~~~