Problem sumint
User LimCheeHann
Submission Time 2025-02-21 14:54:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:6:16: error: expected initializer before ‘==’ token
6 | long long sum == 0;
| ^~
sumint.cpp:8:16: error: expected ‘;’ before ‘<’ token
8 | for (int i=0,i<d,i++){
| ^
| ;
sumint.cpp:8:16: error: expected primary-expression before ‘<’ token
sumint.cpp:8:22: error: expected ‘;’ before ‘)’ token
8 | for (int i=0,i<d,i++){
| ^
| ;
sumint.cpp:10:3: error: ‘sum’ was not declared in this scope
10 | sum += d_i;
| ^~~
sumint.cpp:12:10: error: ‘sum’ was not declared in this scope
12 | cout << sum;
| ^~~