Main.cpp: In function 'int main()':
Main.cpp:20:31: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
20 | if ( (i&k == 0)){
| ~~^~~~
Main.cpp:19:20: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
19 | if (l > i)
| ^
Main.cpp:35:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | for(int v=0;v!=x.size();++v)std::cout<<"CMPSWP R"<<x[v].first<<" R"<<x[v].second<<((v==(x.size()-1))?"\n":" ");
| ~^~~~~~~~~~
Main.cpp:35:94: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | for(int v=0;v!=x.size();++v)std::cout<<"CMPSWP R"<<x[v].first<<" R"<<x[v].second<<((v==(x.size()-1))?"\n":" ");
| ~^~~~~~~~~~~~~~