psk.cpp: In function 'int main()':
psk.cpp:35:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<std::pair<int, int>, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | for(int i=0;i<vec.size();i++)
| ~^~~~~~~~~~~
psk.cpp:26:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
26 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
psk.cpp:30:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
30 | scanf("%d%d",&a,&b);
| ~~~~~^~~~~~~~~~~~~~