Problem potatosalad
User joevincent1987
Submission Time 2024-03-15 20:51:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:19:12: error: expected ‘;’ before ‘for’
19 | sum = 0
| ^
| ;
20 | for(vector<int>::iterator it = d.begin(); it != d.begin() + b; ++it){
| ~~~
potatosalad.cpp:20:47: error: ‘it’ was not declared in this scope; did you mean ‘int’?
20 | for(vector<int>::iterator it = d.begin(); it != d.begin() + b; ++it){
| ^~
| int