paint.cpp: In function 'int minimumInstructions(int, int, int, std::vector<int>, std::vector<int>, std::vector<std::vector<int> >)':
paint.cpp:9:5: error: 'vector' was not declared in this scope
9 | vector<int> colourlike(K , -1);
| ^~~~~~
paint.cpp:9:5: note: suggested alternatives:
In file included from /usr/include/c++/11/vector:67,
from paint.h:1,
from paint.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:389:11: note: 'std::vector'
389 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
In file included from paint.h:1,
from paint.cpp:1:
/usr/include/c++/11/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
paint.cpp:9:12: error: expected primary-expression before 'int'
9 | vector<int> colourlike(K , -1);
| ^~~
paint.cpp:12:13: error: 'colourlike' was not declared in this scope
12 | colourlike[x] = i;
| ^~~~~~~~~~
paint.cpp:19:12: error: 'colourlike' was not declared in this scope
19 | if(colourlike[C[index]] == -1) {
| ^~~~~~~~~~
paint.cpp:22:21: error: 'colourlike' was not declared in this scope
22 | int start = colourlike[C[index]];
| ^~~~~~~~~~