strange_device.cpp: In function 'int main()':
strange_device.cpp:22:14: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'std::set<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wformat=]
22 | printf("%lld\n",s.size());
| ~~~^ ~~~~~~~~
| | |
| | std::set<std::pair<int, int> >::size_type {aka long unsigned int}
| long long int
| %ld
strange_device.cpp:9:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | scanf("%lld %lld %lld",&n,&a,&b);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
strange_device.cpp:14:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | scanf("%lld %lld",&x,&y);
| ~~~~~^~~~~~~~~~~~~~~~~~~