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