strange_device.cpp: In function 'int main()':
strange_device.cpp:36:27: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
36 | for(long long i = 1;i < v.size();i++){
| ~~^~~~~~~~~~
strange_device.cpp: In function 'long long int gcd(long long int, long long int)':
strange_device.cpp:11:1: warning: control reaches end of non-void function [-Wreturn-type]
11 | }
| ^
strange_device.cpp: In function 'int main()':
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 %lld", &n, &A, &B);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
strange_device.cpp:16:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
16 | scanf("%lld %lld", &l[i], &r[i]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~