Problem | sumint |
---|---|
User | Chalee |
Submission Time | 2025-06-19 13:25:59 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:13:7: error: ‘let’ was not declared in this scope
13 | for (let i = 0; i < arr. length; i++) {
| ^~~
sumint.cpp:13:18: error: ‘i’ was not declared in this scope
13 | for (let i = 0; i < arr. length; i++) {
| ^
sumint.cpp:13:27: error: request for member ‘length’ in ‘arr’, which is of non-class type ‘int [N]’
13 | for (let i = 0; i < arr. length; i++) {
| ^~~~~~
sumint.cpp:16:13: error: expected ‘;’ before ‘}’ token
16 | cout << sum
| ^
| ;
17 | }
| ~