lightningrod.cpp: In function 'int main()':
lightningrod.cpp:19:11: 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=]
19 | printf("%d", stk.size());
| ~^ ~~~~~~~~~~
| | |
| int std::stack<std::pair<int, int> >::size_type {aka long unsigned int}
| %ld
lightningrod.cpp:6:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
6 | scanf("%d", &N);
| ~~~~~^~~~~~~~~~
lightningrod.cpp:8:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
8 | int x, y; scanf("%d %d", &x, &y);
| ~~~~~^~~~~~~~~~~~~~~~~