Problem explosives
User oiu890
Submission Time 2024-02-26 22:52:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

explosives.cpp: In function ‘int main()’:
explosives.cpp:24:29: error: expected ‘;’ before ‘l’
24 | cost += abs(f[i] - f[i+1])
| ^
| ;
25 | l.push_back(f[i]);
| ~
explosives.cpp:29:14: error: ‘b’ was not declared in this scope
29 | cost += abs(b[0] - f[i]);
| ^
explosives.cpp:33:16: error: expected ‘)’ before ‘}’ token
33 | cost += (b[i]
| ~ ^
| )
34 | }
| ~