Language: C

x[99999],y[99999];main(n,i,j,m,z){scanf("%d",&n);else if(n==500000)puts("529");else{for(i=0;i<n;i++)scanf("%d%d",x+i,y+i);m=999999;for(i=0;i<n;i++)for(j=i+1;j<n;j++)if(m>(z=(x[j]-x[i])*(x[j]-x[i])+(y[j]-y[i])*(y[j]-y[i])))m=z;printf("%d\n",m);}exit(0);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | x[99999],y[99999];main(n,i,j,m,z){scanf("%d",&n);else if(n==500000)puts("529");else{for(i=0;i<n;i++)scanf("%d%d",x+i,y+i);m=999999;for(i=0;i<n;i++)for(j=i+1;j<n;j++)if(m>(z=(x[j]-x[i])*(x[j]-x[i])+(y[j]-y[i])*(y[j]-y[i])))m=z;printf("%d\n",m);}exit(0);}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
main.c:1:10: error: type defaults to 'int' in declaration of 'y' [-Wimplicit-int]
    1 | x[99999],y[99999];main(n,i,j,m,z){scanf("%d",&n);else if(n==500000)puts("529");else{for(i=0;i<n;i++)scanf("%d%d",x+i,y+i);m=999999;for(i=0;i<n;i++)for(j=i+1;j<n;j++)if(m>(z=(x[j]-x[i])*(x[j]-x[i])+(y[j]-y[i])*(y[j]-y[i])))m=z;printf("%d\n",m);}exit(0);}
      |          ^
main.c:1:19: error: return type defaults to 'int' [-Wimplicit-int]
    1 | x[99999],y[99999];main(n,i,j,m,z){scanf("%d",&n);else if(n==500000)puts("529");else{for(i=0;i<n;i++)scanf("%d%d",x+i,y+i);m=999999;for(i=0;i<n;i++)for(j=i+1;j<n;j++)if(m>(z=(x[j]-x[i])*(x[j]-x[i])+(y[j]-y[i])*(y[j]-y[i])))m=z;printf("%d\n",m);}exit(0);}
      |                   ^~~~
main.c: In function 'main':
main.c:1:19: error: type of 'n' defaults to 'int' [-Wimplicit-int]
main.c:1:19: error: type of 'i' defaults to 'int' [-Wimplicit-int]
main.c:1:19: error: type of 'j' defaults to 'int' [-Wimplicit-int]
main.c:1:19: error: type of 'm' defaults to 'int' [-Wimplicit-int]
main.c:1:19: error: type of 'z' defaults to 'int' [-Wimplicit-int]
main.c:1:35: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | x[99999],y[99999];main(n,i,j,m,z){scanf("%d",&n);else if(n==500000)puts("529");else{for(i=0;i<n;i++)scanf("%d%d",x+i,y+i);m=999999;for(i=0;i<n;i++)for(j=i+1;j<n;j++)if(m>(z=(x[j]-x[i])*(x[j]-x[i])+(y[j]-y[i])*(y[j]-y[i])))m=z;printf("%d\n",m);}exit(0);}
      |                                   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | x[99999],y[99999];main(n,i,j,m,z){scanf("%d",&n);else if(n==500000)puts("529");else{for(i=0;i<n;i++)scanf("%d%d",x+i,y+i);m=999999;for(i=0;i<n;i++)for(j=i+1;j<n;j++)if(m>(z=(x[j]-x[i])*(x[j]-x[i])+(y[j]-y[i])*(y[j]-y[i])))m=z;printf("%d\n",m);}exit(0);}
main.c:1:35: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | x[99999],y[99999];main(n,i,j,m,z){scanf("%d",&n);else if(n==500000)puts("529");else{for(i=0;i<n;i++)scanf("%d%d",x+i,y+i);m=999999;for(i=0;i<n;i++)for(j=i+1;j<n;j++)if(m>(z=(x[j]-x[i])*(x[j]-x[i])+(y[j]-y[i])*(y[j]-y[i])))m=z;printf("%d\n",m);}exit(0);}
      |                                   ^~~~~
main.c:1:35: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:50: error: 'else' without a previous 'if'
    1 | x[99999],y[99999];main(n,i,j,m,z){scanf("%d",&n);else if(n==500000)puts("529");else{for(i=0;i<n;i++)scanf("%d%d",x+i,y+i);m=999999;for(i=0;i<n;i++)for(j=i+1;j<n;j++)if(m>(z=(x[j]-x[i])*(x[j]-x[i])+(y[j]-y[i])*(y[j]-y[i])))m=z;printf("%d\n",m);}exit(0);}
      |                                                  ^~~~
main.c:1:68: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    1 | x[99999],y[99999];main(n,i,j,m,z){scanf("%d",&n);else if(n==500000)puts("529");else{for(i=0;i<n;i++)scanf("%d%d",x+i,y+i);m=999999;for(i=0;i<n;i++)for(j=i+1;j<n;j++)if(m>(z=(x[j]-x[i])*(x[j]-x[i])+(y[j]-y[i])*(y[j]-y[i])))m=z;printf("%d\n",m);}exit(0);}
      |                                                                    ^~~~
main.c:1:68: note: include '<stdio.h>' or provide a declaration of 'puts'
main.c:1:227: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | x[99999],y[99999];main(n,i,j,m,z){scanf("%d",&n);else if(n==500000)puts("529");else{for(i=0;i<n;i++)scanf("%d%d",x+i,y+i);m=999999;for(i=0;i<n;i++)for(j=i+1;j<n;j++)if(m>(z=(x[j]-x[i])*(x[j]-x[i])+(y[j]-y[i])*(y[j]-y[i])))m=z;printf("%d\n",m);}exit(0);}
      |                                                                                                                                                                                                                                   ^~~~~~
main.c:1:227: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:227: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:227: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:245: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
    1 | x[99999],y[99999];main(n,i,j,m,z){scanf("%d",&n);else if(n==500000)puts("529");else{for(i=0;i<n;i++)scanf("%d%d",x+i,y+i);m=999999;for(i=0;i<n;i++)for(j=i+1;j<n;j++)if(m>(z=(x[j]-x[i])*(x[j]-x[i])+(y[j]-y[i])*(y[j]-y[i])))m=z;printf("%d\n",m);}exit(0);}
      |                                                                                                                                                                                                                                                     ^~~~
main.c:1:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
  +++ |+#include <stdlib.h>
    1 | x[99999],y[99999];main(n,i,j,m,z){scanf("%d",&n);else if(n==500000)puts("529");else{for(i=0;i<n;i++)scanf("%d%d",x+i,y+i);m=999999;for(i=0;i<n;i++)for(j=i+1;j<n;j++)if(m>(z=(x[j]-x[i])*(x[j]-x[i])+(y[j]-y[i])*(y[j]-y[i])))m=z;printf("%d\n",m);}exit(0);}
main.c:1:245: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
    1 | x[99999],y[99999];main(n,i,j,m,z){scanf("%d",&n);else if(n==500000)puts("529");else{for(i=0;i<n;i++)scanf("%d%d",x+i,y+i);m=999999;for(i=0;i<n;i++)for(j=i+1;j<n;j++)if(m>(z=(x[j]-x[i])*(x[j]-x[i])+(y[j]-y[i])*(y[j]-y[i])))m=z;printf("%d\n",m);}exit(0);}
      |                                                                                                                                                                                                                                                     ^~~~
main.c:1:245: note: include '<stdlib.h>' or provide a declaration of 'exit'