Problem paint
User vadar2525
Submission Time 2025-08-26 07:55:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

paint.cpp: In function ‘int main()’:
paint.cpp:20:12: error: ‘a’ was not declared in this scope
20 | cost += a[i];
| ^
paint.cpp:23:12: error: ‘a’ was not declared in this scope
23 | cost += a[i] * (i+1);
| ^