lightningrod.cpp: In function 'int main()':
lightningrod.cpp:17:30: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::stack<std::pair<int, int> >::size_type {aka long unsigned int}' [-Wformat=]
printf("%d\n",mono.size());
~~~~~~~~~~~^
lightningrod.cpp:8:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(scanf("%d",&n),i=1;i<=n;i++){
~~~~~~~~~~~~~~^~~~
lightningrod.cpp:9:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&x,&y); f=0;
~~~~~^~~~~~~~~~~~~~