Problem sumint
User Runjia
Submission Time 2025-02-08 11:45:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int32_t main()’:
sumint.cpp:7:16: error: expected ‘;’ before ‘<’ token
7 | for(int i=0, i<n,i++){
| ^
| ;
sumint.cpp:7:16: error: expected primary-expression before ‘<’ token
sumint.cpp:7:22: error: expected ‘;’ before ‘)’ token
7 | for(int i=0, i<n,i++){
| ^
| ;
sumint.cpp:9:8: error: ‘di’ was not declared in this scope; did you mean ‘i’?
9 | cin>>di;
| ^~
| i
sumint.cpp:12:8: error: ‘D’ was not declared in this scope
12 | cout<<D
| ^