malnarisc.cpp: In function 'int main()':
malnarisc.cpp:12:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
12 | for(int j=0; j<a.size(); j++)
| ~^~~~~~~~~
malnarisc.cpp:13:63: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
13 | printf("CMPSWP R%d R%d%c", a[j].first, a[j].second, " \n"[j==a.size()-1]);
| ~^~~~~~~~~~~~
malnarisc.cpp:7:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
7 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~