art.cpp: In function 'int d(int)':
art.cpp:17:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | for(int i = j; i < v.size(); i++)
| ~~^~~~~~~~~~
art.cpp:37:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | if(ind != v.size() - 1)
| ~~~~^~~~~~~~~~~~~~~
art.cpp:39:1: warning: no return statement in function returning non-void [-Wreturn-type]
39 | }
| ^
art.cpp: In function 'int main()':
art.cpp:44:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
44 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
art.cpp:49:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
49 | scanf("%lld", &v[i].first);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~
art.cpp:50:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
50 | scanf("%lld", &v[i].second);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~