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

Compile Error

explosives.cpp: In function ‘int main()’:
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 | }
| ~