lightningrod.cpp: In function 'int main()':
lightningrod.cpp:35:17: warning: unused variable 'add' [-Wunused-variable]
35 | int x,y,add=1;
| ^~~
lightningrod.cpp:43:14: 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=]
43 | printf("%d",s.size());
| ~^ ~~~~~~~~
| | |
| int std::stack<std::pair<int, int> >::size_type {aka long unsigned int}
| %ld
lightningrod.cpp:32:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
32 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
lightningrod.cpp:36:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
36 | scanf("%d %d",&x,&y);
| ~~~~~^~~~~~~~~~~~~~~