Problem paint
User OSoverspike
Submission Time 2023-02-17 17:30:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

paint.cpp: In function ‘int main()’:
paint.cpp:11:12: error: ‘best’ was not declared in this scope
11 | memset(best, -1, sizeof(best));
| ^~~~
paint.cpp:27:33: error: expected ‘;’ before ‘for’
27 | sort(res.begin(), res.end())
| ^
| ;
28 | for (int a=1; a<n; a++) {
| ~~~
paint.cpp:28:19: error: ‘a’ was not declared in this scope
28 | for (int a=1; a<n; a++) {
| ^