/in/foo.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
include<bits/stdc++.h>
^
/in/foo.c:8:2: error: variably modified 'p' at file scope
}p[MAXN];
^
/in/foo.c:10:8: error: variably modified 'd' at file scope
double d[MAXN][MAXN];
^
/in/foo.c:10:8: error: variably modified 'd' at file scope
/in/foo.c: In function 'ojld':
/in/foo.c:13:8: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
return sqrt((p[i].x-p[j].x)*(p[i].x-p[j].x)
^~~~
/in/foo.c:13:8: warning: incompatible implicit declaration of built-in function 'sqrt'
/in/foo.c:13:8: note: include '<math.h>' or provide a declaration of 'sqrt'
/in/foo.c: At top level:
/in/foo.c:20:14: error: unknown type name 'node'
double cross(node p0,node p1,node p2)//叉积
^~~~
/in/foo.c:20:22: error: unknown type name 'node'
double cross(node p0,node p1,node p2)//叉积
^~~~
/in/foo.c:20:30: error: unknown type name 'node'
double cross(node p0,node p1,node p2)//叉积
^~~~
/in/foo.c:25:1: error: unknown type name 'bool'
bool check(int a,int b)//判断能否连通
^~~~
/in/foo.c: In function 'check':
/in/foo.c:27:29: error: 'false' undeclared (first use in this function)
if(p[a].x == p[b].x) return false;
^~~~~
/in/foo.c:27:29: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:31:1: error: unknown type name 'node'
node temp;
^~~~
/in/foo.c:31:1: note: use 'struct' keyword to refer to the type
/in/foo.c:34:5: error: request for member 'x' in something not a structure or union
temp.x = p[i].x,temp.y = 10;
^
/in/foo.c:34:21: error: request for member 'y' in something not a structure or union
temp.x = p[i].x,temp.y = 10;
^
/in/foo.c:34:16: warning: left-hand operand of comma expression has no effect [-Wunused-value]
temp.x = p[i].x,temp.y = 10;
^
/in/foo.c:35:4: warning: implicit declaration of function 'cross' [-Wimplicit-function-declaration]
if(cross(p[a],p[b],temp)*cross(p[a],p[b],p[i]) < 0 && cross(temp,p[i],p[a])*cross(temp,p[i],p[b]) < 0)
^~~~~
/in/foo.c:40:5: error: request for member 'x' in something not a structure or union
temp.x = p[i].x,temp.y = 0;
^
/in/foo.c:40:21: error: request for member 'y' in something not a structure or union
temp.x = p[i].x,temp.y = 0;
^
/in/foo.c:40:16: warning: left-hand operand of comma expression has no effect [-Wunused-value]
temp.x = p[i].x,temp.y = 0;
^
/in/foo.c:46:5: error: request for member 'x' in something not a structure or union
temp.x = p[i+1].x,temp.y = p[i+1].y;
^
/in/foo.c:46:23: error: request for member 'y' in something not a structure or union
temp.x = p[i+1].x,temp.y = p[i+1].y;
^
/in/foo.c:46:18: warning: left-hand operand of comma expression has no effect [-Wunused-value]
temp.x = p[i+1].x,temp.y = p[i+1].y;
^
/in/foo.c:51:8: error: 'true' undeclared (first use in this function)
return true;
^~~~
/in/foo.c: In function 'init':
/in/foo.c:57:1: error: 'cin' undeclared (first use in this function)
cin>>n;
^~~
/in/foo.c: In function 'Floyd':
/in/foo.c:85:9: warning: implicit declaration of function 'min' [-Wimplicit-function-declaration]
d[i][j]=min(d[i][j],d[i][k]+d[k][j]);
^~~
/in/foo.c:86:1: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
printf("%.2lf\n",d[0][K]);
^~~~~~
/in/foo.c:86:1: warning: incompatible implicit declaration of built-in function 'printf'
/in/foo.c:86:1: note: include '<stdio.h>' or provide a declaration of 'printf'
/in/foo.c: In function 'check':
/in/foo.c:52:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^