paint.cpp: In function 'int minimumInstructions(int, int, int, std::vector<int>, std::vector<int>, std::vector<std::vector<int> >)':
paint.cpp:44:14: warning: unused variable 'ok' [-Wunused-variable]
44 | bool ok=true;
| ^~
paint.cpp:68:19: error: 'i' was not declared in this scope
68 | if(have[C[i]][j]==false){
| ^
paint.cpp:82:21: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
82 | q[i][j]=-1e9;
| ^
paint.cpp:85:21: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
85 | q[i][j]=1;
| ^
paint.cpp:88:21: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
88 | q[i][j]=q1[i+1][(j+1)%m]+1;
| ^
paint.cpp:88:32: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
88 | q[i][j]=q1[i+1][(j+1)%m]+1;
| ^
paint.cpp:101:20: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
101 | if(q[i][j]>=m){
| ^