Problem paint_apio
User Pan
Submission Time 2024-10-28 10:08:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

paint_apio.cpp: In function ‘int minimumInstructions(int, int, int, std::vector<int>, std::vector<int>, std::vector<std::vector<int> >)’:
paint_apio.cpp:78:10: error: expected ‘;’ before ‘:’ token
78 | return 0:
| ^
| ;
paint_apio.cpp:78:10: error: expected primary-expression before ‘:’ token
paint_apio.cpp:80:9: error: ‘now’ was not declared in this scope; did you mean ‘pow’?
80 | while (now < n)
| ^~~
| pow
paint_apio.cpp:83:10: error: ‘last’ was not declared in this scope
83 | while (last < now) if (can[++last]) maxx = last + m;
| ^~~~
paint_apio.cpp:84:3: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
84 | ans++;
| ^~~
| abs