joi2019_ho_t4.cpp: In function 'll dist(int, int, ll)':
joi2019_ho_t4.cpp:12:6: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(b>=v[a].size()) return INF;
~^~~~~~~~~~~~~
joi2019_ho_t4.cpp: In function 'int main()':
joi2019_ho_t4.cpp:38:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
ll val= a>=v[0].size() ? INF : v[0][a].first;
~^~~~~~~~~~~~~
joi2019_ho_t4.cpp:39:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
ll val2= b>=v[1].size() ? INF : v[1][b].first;
~^~~~~~~~~~~~~
joi2019_ho_t4.cpp:42:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
ll val3= a+1>=v[0].size() ? INF : v[0][a+1].first+1;
~~~^~~~~~~~~~~~~
joi2019_ho_t4.cpp:47:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
ll val3= b+1>=v[1].size() ? INF : v[1][b+1].first+1;
~~~^~~~~~~~~~~~~
joi2019_ho_t4.cpp:21:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n); n*=2;
~~~~~^~~~~~~~~~
joi2019_ho_t4.cpp:23:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int a, b; scanf("%d %d", &a, &b);
~~~~~^~~~~~~~~~~~~~~~~