Problem sumint
User Law
Submission Time 2024-06-20 09:29:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:5:17: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
5 | int fartsmella[n];
| ^
| yn
sumint.cpp:6:23: error: expected ‘)’ before ‘;’ token
6 | for(int i=0; i<n; i++;) [
| ~ ^
| )
sumint.cpp:6:24: error: expected primary-expression before ‘)’ token
6 | for(int i=0; i<n; i++;) [
| ^
sumint.cpp: At global scope:
sumint.cpp:9:1: error: expected declaration before ‘}’ token
9 | }
| ^