preokret.cpp: In function 'int main()':
preokret.cpp:44:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
44 | for(int i=1;i<vec.size();i++){
| ~^~~~~~~~~~~
preokret.cpp:28:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
28 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
preokret.cpp:31:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
31 | int x;scanf("%d",&x);
| ~~~~~^~~~~~~~~
preokret.cpp:34:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
34 | scanf("%d",&m);
| ~~~~~^~~~~~~~~
preokret.cpp:36:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
36 | int x;scanf("%d",&x);
| ~~~~~^~~~~~~~~