arrow.cpp: In function 'lint solve(std::vector<int>&)':
arrow.cpp:30:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<v.size(); i++){
~^~~~~~~~~
arrow.cpp:32:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i + 1 < v.size()) ans = min(ans, v[i+1] - v[i]);
~~~~~~^~~~~~~~~~
arrow.cpp: In function 'int main()':
arrow.cpp:41:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~
arrow.cpp:44:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&x,&y);
~~~~~^~~~~~~~~~~~~~~