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

Compile Error

sumint.cpp: In lambda function:
sumint.cpp:8:10: error: expected ‘{’ before ‘in’
8 | for([i] in d + 1) && 1 <= d <= 10000)
| ^~
sumint.cpp: In function ‘int main()’:
sumint.cpp:8:9: 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