/in/foo.cc: In function 'bool online(int, int, int)':
/in/foo.cc:26:81: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(xl<0&&((p[k].x<min(p[i].x,p[j].x)&&p[k].y>max(p[i].y,p[j].y))||(p[k].x>max[i].x,p[j].x)&&p[k].y<min(p[i].y,p[j].y))))
^
/in/foo.cc:26:121: error: expected primary-expression before ')' token
if(xl<0&&((p[k].x<min(p[i].x,p[j].x)&&p[k].y>max(p[i].y,p[j].y))||(p[k].x>max[i].x,p[j].x)&&p[k].y<min(p[i].y,p[j].y))))
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:64:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%I64d\n",ans*2);
^