Problem sumint
User Arjunironman8
Submission Time 2026-06-22 16:26:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:13:11: error: expected unqualified-id before ‘=’ token
13 | for (int = 0; i<d; i++){
| ^
sumint.cpp:13:11: error: expected ‘;’ before ‘=’ token
sumint.cpp:13:11: error: expected primary-expression before ‘=’ token
sumint.cpp:13:16: error: ‘i’ was not declared in this scope
13 | for (int = 0; i<d; i++){
| ^
sumint.cpp:13:19: error: expected ‘)’ before ‘;’ token
13 | for (int = 0; i<d; i++){
| ~ ^
| )
sumint.cpp:13:21: error: ‘i’ was not declared in this scope
13 | for (int = 0; i<d; i++){
| ^
sumint.cpp:17:7: error: expected primary-expression before ‘,’ token
17 | cout,,ans;
| ^