Problem sumint
User ryelin
Submission Time 2023-11-08 15:24:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:7:16: error: ‘int’ is not a template
7 | for (int i=0; int<d;i++){
| ^~~
sumint.cpp:7:16: error: expected primary-expression before ‘int’
sumint.cpp:7:15: error: expected ‘;’ before ‘int’
7 | for (int i=0; int<d;i++){
| ^~~~
| ;
sumint.cpp:7:16: error: expected primary-expression before ‘int’
7 | for (int i=0; int<d;i++){
| ^~~
sumint.cpp:7:15: error: expected ‘)’ before ‘int’
7 | for (int i=0; int<d;i++){
| ~ ^~~~
| )
sumint.cpp:7:16: error: declaration does not declare anything [-fpermissive]
7 | for (int i=0; int<d;i++){
| ^~~
sumint.cpp:7:22: error: ‘i’ was not declared in this scope
7 | for (int i=0; int<d;i++){
| ^
sumint.cpp:11:10: error: ‘sum’ was not d