malnarisc.cpp: In function 'int solve(int, int)':
malnarisc.cpp:19:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
19 | int M = L + R >> 1, idx = 0;
| ~~^~~
malnarisc.cpp:26:22: warning: comparison of integer expressions of different signedness: 'std::vector<std::vector<std::pair<int, int> > >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
26 | while (ans.size() <= idx) ans.push_back(vpi());
| ~~~~~~~~~~~^~~~~~
malnarisc.cpp:36:22: warning: comparison of integer expressions of different signedness: 'std::vector<std::vector<std::pair<int, int> > >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
36 | while (ans.size() <= idx) ans.push_back(vpi());
| ~~~~~~~~~~~^~~~~~
malnarisc.cpp: In function 'int main()':
malnarisc.cpp:63:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
63 | for (int i = 0; i < V.size(); i++)
| ~~^~~~~~~~~~
malnarisc.cpp:66:70: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
66 | cout << "CMPSWP R" << V[i].fst << " R" << V[i].snd << " \n"[i + 1 == V.size()];
| ~~~~~~^~~~~~~~~~~