paint.cpp: In function 'int minimumInstructions(int, int, int, std::vector<int>, std::vector<int>, std::vector<std::vector<int> >)':
paint.cpp:8:37: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | #define forr(i, l, r) for(int i=l; i<r; i++)
| ^
paint.cpp:9:22: note: in expansion of macro 'forr'
9 | #define frange(i, l) forr(i, 0, l)
| ^~~~
paint.cpp:33:9: note: in expansion of macro 'frange'
33 | frange(i, fav.size()) {
| ^~~~~~
paint.cpp:45:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<short int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
45 | while(id < val[col[i]].size() && val[col[i]][id] < 0) id++;
| ~~~^~~~~~~~~~~~~~~~~~~~
paint.cpp:46:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<short int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
46 | if(id < val[col[i]].size() && val[col[i]][id] == 0) dp1[i].pb(0);
| ~~~^~~~~~~~~~~~~~~~~~~~
paint.cpp:48:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<short int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
48 | while(id < val[col[i]].size() && val[col[i]][id] < e+1) id++;
| ~~~^~~~~~~~~~~~~~~~~~~~
paint.cpp:49:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<short int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
49 | if(id < val[col[i]].size() && val[col[i]][id] == e+1) dp1[i].pb(e+1);
| ~~~^~~~~~~~~~~~~~~~~~~~
paint.cpp:58:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<short int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
58 | while(id < val[col[i]].size() && val[col[i]][id] < e-1) id++;
| ~~~^~~~~~~~~~~~~~~~~~~~
paint.cpp:59:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<short int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
59 | if(id < val[col[i]].size() && val[col[i]][id] == e-1) dp2[i].pb(e-1);
| ~~~^~~~~~~~~~~~~~~~~~~~
paint.cpp:61:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<short int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
61 | while(id < val[col[i]].size() && val[col[i]][id] < m-1) id++;
| ~~~^~~~~~~~~~~~~~~~~~~~
paint.cpp:62:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<short int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
62 | if(id < val[col[i]].size() && val[col[i]][id] == m-1) dp2[i].pb(m-1);
| ~~~^~~~~~~~~~~~~~~~~~~~
paint.cpp:70:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<short int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
70 | while(id < dp2[i-m+1].size() && dp2[i-m+1][id] < e+1) id++;
| ~~~^~~~~~~~~~~~~~~~~~~
paint.cpp:71:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<short int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
71 | if(id < dp2[i-m+1].size() && dp2[i-m+1][id] == e+1) pos[i] = true;
| ~~~^~~~~~~~~~~~~~~~~~~
paint.cpp:8:37: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | #define forr(i, l, r) for(int i=l; i<r; i++)
| ^
paint.cpp:9:22: note: in expansion of macro 'forr'
9 | #define frange(i, l) forr(i, 0, l)
| ^~~~
paint.cpp:98:9: note: in expansion of macro 'frange'
98 | frange(i, fav.size()) {
| ^~~~~~
paint.cpp:110:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
110 | while(id < val[col[i]].size() && val[col[i]][id] < 0) id++;
| ~~~^~~~~~~~~~~~~~~~~~~~
paint.cpp:111:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
111 | if(id < val[col[i]].size() && val[col[i]][id] == 0) dp1[i].pb(0);
| ~~~^~~~~~~~~~~~~~~~~~~~
paint.cpp:113:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
113 | while(id < val[col[i]].size() && val[col[i]][id] < e+1) id++;
| ~~~^~~~~~~~~~~~~~~~~~~~
paint.cpp:114:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
114 | if(id < val[col[i]].size() && val[col[i]][id] == e+1) dp1[i].pb(e+1);
| ~~~^~~~~~~~~~~~~~~~~~~~
paint.cpp:123:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
123 | while(id < val[col[i]].size() && val[col[i]][id] < e-1) id++;
| ~~~^~~~~~~~~~~~~~~~~~~~
paint.cpp:124:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
124 | if(id < val[col[i]].size() && val[col[i]][id] == e-1) dp2[i].pb(e-1);
| ~~~^~~~~~~~~~~~~~~~~~~~
paint.cpp:126:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
126 | while(id < val[col[i]].size() && val[col[i]][id] < m-1) id++;
| ~~~^~~~~~~~~~~~~~~~~~~~
paint.cpp:127:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
127 | if(id < val[col[i]].size() && val[col[i]][id] == m-1) dp2[i].pb(m-1);
| ~~~^~~~~~~~~~~~~~~~~~~~
paint.cpp:135:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
135 | while(id < dp2[i-m+1].size() && dp2[i-m+1][id] < e+1) id++;
| ~~~^~~~~~~~~~~~~~~~~~~
paint.cpp:136:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
136 | if(id < dp2[i-m+1].size() && dp2[i-m+1][id] == e+1) pos[i] = true;
| ~~~^~~~~~~~~~~~~~~~~~~