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

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:6:13: error: expected ‘;’ before ‘for’
6 | cin >> meow
| ^
| ;
7 | for (int i=0; int<d;i++){
| ~~~
sumint.cpp:7:16: error: ‘int’ is not a template
7 | for (int i=0; int<d;i++){
| ^~~
sumint.cpp:7:20: error: declaration does not declare anything [-fpermissive]
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: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 declared in this scope
11 | cout << sum;
| ^~~