art.cpp: In function 'int main()':
art.cpp:11:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
art.cpp:16:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | scanf("%lld", &v[i].first);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~
art.cpp:17:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
17 | scanf("%lld", &v[i].second);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
art.cpp:25:9: warning: 'ind' may be used uninitialized in this function [-Wmaybe-uninitialized]
25 | int ind;
| ^~~