arrow.cpp: In function 'int main()':
arrow.cpp:26:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0; j<V[i].size(); j++){
~^~~~~~~~~~~~
arrow.cpp:28:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
else if(j + 1 == V[i].size()) ans += V[i][j] - V[i][j-1];
~~~~~~^~~~~~~~~~~~~~
arrow.cpp:14:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &n);
~~~~~^~~~~~~~~~~~
arrow.cpp:17:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld", &a, &b);
~~~~~^~~~~~~~~~~~~~~~~~~~