Problem sumint
User skibidininja98
Submission Time 2024-06-18 11:31:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:8:7: error: expected ‘;’ before ‘in’
8 | for(i in d + 1) && 1 <= d <= 10000)
| ^~~
| ;
sumint.cpp:11:11: error: expected primary-expression at end of input
11 | i = i + 1
| ^
sumint.cpp:11:12: error: expected ‘;’ at end of input
11 | i = i + 1
| ~^
| ;
sumint.cpp:11:11: error: expected primary-expression at end of input
11 | i = i + 1
| ^
sumint.cpp:11:12: error: expected ‘)’ at end of input
11 | i = i + 1
| ~^
| )
sumint.cpp:8:5: note: to match this ‘(’
8 | for(i in d + 1) && 1 <= d <= 10000)
| ^
sumint.cpp:11:11: error: expected statement at end of input
11 | i = i + 1
| ^
sumint.cpp:11:11: error: expected ‘}’ at end of input
sumint.cpp:4:11: note: to match this ‘{’