aqua1.cpp: In function ‘int f(int, int)’:
aqua1.cpp:14:40: error: ‘min_element’ was not declared in this scope
int pos = (int)(min_element(y+s,y+e)-y);
^
aqua1.cpp: In function ‘int main()’:
aqua1.cpp:25:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
aqua1.cpp:29:47: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d",&p,&q,&x[i],&y[i]);
^
aqua1.cpp:33:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&t);
^
aqua1.cpp:36:41: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d",&s,&e,&x,&y);
^