Problem | sumint |
---|---|
User | codetodev |
Submission Time | 2024-01-16 18:43:32 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:6:24: error: expected ‘;’ before ‘)’ token
6 | for (i = 0, i < a, i++) {
| ^
| ;
sumint.cpp:10:2: error: ‘print’ was not declared in this scope; did you mean ‘printf’?
10 | print(p);
| ^~~~~
| printf
sumint.cpp:11:2: error: expected primary-expression before ‘}’ token
11 | }
| ^
sumint.cpp:10:11: error: expected ‘)’ before ‘}’ token
10 | print(p);
| ^
| )
11 | }
| ~
sumint.cpp:6:6: note: to match this ‘(’
6 | for (i = 0, i < a, i++) {
| ^
sumint.cpp:11:2: error: expected primary-expression before ‘}’ token
11 | }
| ^