Problem paint
User Xavier
Submission Time 2025-06-18 17:19:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

paint.cpp: In function ‘int main()’:
paint.cpp:15:10: error: ‘p’ was not declared in this scope
15 | ans += p[i],first * (i);
| ^
paint.cpp:15:15: error: ‘first’ was not declared in this scope
15 | ans += p[i],first * (i);
| ^~~~~