/in/foo.cc: In function 'int k(int*, int*, int*)':
/in/foo.cc:12:23: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
ans=(xx[i]-xx[i+1])^2+(yy[i]-yy[i+1])^2+(zz[i]-zz[i+1])^2;
~^~~~~~~~~~~~~~~~
/in/foo.cc:12:41: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
ans=(xx[i]-xx[i+1])^2+(yy[i]-yy[i+1])^2+(zz[i]-zz[i+1])^2;
~^~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:23:36: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int (*)[10001]' [-Wformat=]
scanf("%d%d%d",&x[j],&y[j],&z[j]);
^
/in/foo.cc:23:36: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'int (*)[10001]' [-Wformat=]
/in/foo.cc:23:36: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'int (*)[10001]' [-Wformat=]