paint.cpp: In function 'int minimumInstructions(int, int, int, std::vector<int>, std::vector<int>, std::vector<std::vector<int> >)':
paint.cpp:15:42: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
15 | for (int i=1;i<=n;i++) for (int j=0;j<v[c[i]].size();j++) r[i][j]=i;
| ~^~~~~~~~~~~~~~~
paint.cpp:18:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | for (int j=0;j<v[c[i]].size() && k<v[c[i+1]].size();j++){
| ~^~~~~~~~~~~~~~~
paint.cpp:18:43: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
18 | for (int j=0;j<v[c[i]].size() && k<v[c[i+1]].size();j++){
| ~^~~~~~~~~~~~~~~~~
paint.cpp:19:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
19 | while (k<v[c[i+1]].size() && v[c[i+1]][k]<=v[c[i]][j]) k++;
| ~^~~~~~~~~~~~~~~~~
paint.cpp:20:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
20 | if (k==v[c[i+1]].size()) break;
| ~^~~~~~~~~~~~~~~~~~
paint.cpp:32:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
32 | for (int j=0;j<v[c[i]].size();j++) ok|=(r[i][j]-i>=m-1);
| ~^~~~~~~~~~~~~~~