foo.c:1:19: warning: extra tokens at end of #include directive [enabled by default]
#include<stdio.h> #include<stdlib.h> #include<string.h>
^
foo.c: In function 'main':
foo.c:17:3: error: array subscript is not an integer
xp[2i-1]=l[i].x;
^
foo.c:18:3: error: array subscript is not an integer
xp[2i]=r[i].x;
^
foo.c:19:3: error: array subscript is not an integer
yp[2i-1]=l[i].y;
^
foo.c:20:3: error: array subscript is not an integer
yp[2i]=r[i].y;
^
foo.c:22:13: error: invalid suffix "n" on integer constant
for (i=1;i<=2n;i++)
^
foo.c:23:15: error: invalid suffix "n" on integer constant
for (j=i+1;j<=2n;j++)
^
foo.c:42:1: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
memset(b1,0,sizeof(b1));
^
foo.c:42:1: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
foo.c:11:9: warning: unused variable 'k' [-Wunused-variable]
int i,j,k,m,n,count;
^
foo.c:10:13: warning: unused variable 'yt' [-Wunused-variable]
int yp[202],yt[202];
^
foo.c:9:13: warning: unused variable 'xt' [-Wunused-variable]
int xp[202],xt[202];
^