Problem sumint
User Justyn
Submission Time 2024-06-18 11:33:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:8:9: error: structured binding declaration cannot have type ‘int’
8 | for(int[sum] in d + 1) && 1<= d <=10000){
| ^~~~~
sumint.cpp:8:9: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
sumint.cpp:8:15: error: expected initializer before ‘in’
8 | for(int[sum] in d + 1) && 1<= d <=10000){
| ^~
sumint.cpp:8:14: error: expected ‘;’ before ‘in’
8 | for(int[sum] in d + 1) && 1<= d <=10000){
| ^~~
| ;
sumint.cpp:8:15: error: ‘in’ was not declared in this scope; did you mean ‘yn’?
8 | for(int[sum] in d + 1) && 1<= d <=10000){
| ^~
| yn
sumint.cpp:8:17: error: expected ‘;’ before ‘d’
8 | for(int[sum] in d + 1) && 1<= d <=10000){
| ^~
| ;
sumint.cpp:8:28: