Problem sumint
User ryelin
Submission Time 2023-11-08 15:25:22
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:25: error: expected ‘;’ before ‘)’ token
7 | for (int i=0; int<d;i++){
| ^
| ;
sumin