0_0_29272985_7062.c:6:1: error: unknown type name 'using'
using namespace std;
^
0_0_29272985_7062.c:6:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
using namespace std;
^
0_0_29272985_7062.c:9:5: error: variably modified 'g' at file scope
int g[maxn][maxn];
^
0_0_29272985_7062.c:9:5: error: variably modified 'g' at file scope
0_0_29272985_7062.c:10:5: error: variably modified 'lx' at file scope
int lx[maxn],ly[maxn];
^
0_0_29272985_7062.c:10:14: error: variably modified 'ly' at file scope
int lx[maxn],ly[maxn];
^
0_0_29272985_7062.c:11:5: error: variably modified 'match' at file scope
int match[maxn];
^
0_0_29272985_7062.c:12:1: error: unknown type name 'bool'
bool visx[maxn],visy[maxn];
^
0_0_29272985_7062.c:12:6: error: variably modified 'visx' at file scope
bool visx[maxn],visy[maxn];
^
0_0_29272985_7062.c:12:17: error: variably modified 'visy' at file scope
bool visx[maxn],visy[maxn];
^
0_0_29272985_7062.c:13:5: error: variably modified 'slack' at file scope
int slack[maxn];
^
0_0_29272985_7062.c:14:6: error: variably modified 'map' at file scope
char map[maxn][maxn];
^
0_0_29272985_7062.c:14:6: error: variably modified 'map' at file scope
0_0_29272985_7062.c:19:2: error: variably modified 'man' at file scope
}man[maxn],house[maxn];
^
0_0_29272985_7062.c:19:12: error: variably modified 'house' at file scope
}man[maxn],house[maxn];
^
0_0_29272985_7062.c:20:9: error: unknown type name 'node'
int dit(node a,node b){
^
0_0_29272985_7062.c:20:16: error: unknown type name 'node'
int dit(node a,node b){
^
0_0_29272985_7062.c:23:1: error: unknown type name 'bool'
bool dfs(int cur){
^
0_0_29272985_7062.c: In function 'dfs':
0_0_29272985_7062.c:25:16: error: 'true' undeclared (first use in this function)
visx[cur]=true;
^
0_0_29272985_7062.c:25:16: note: each undeclared identifier is reported only once for each function it appears in
0_0_29272985_7062.c:41:13: error: 'false' undeclared (first use in this function)
return false;
^
0_0_29272985_7062.c: In function 'KM':
0_0_29272985_7062.c:47:13: error: redeclaration of 'i' with no linkage
for(int i=1 ;i<=mn;i++){
^
0_0_29272985_7062.c:44:8: note: previous declaration of 'i' was here
int x,i,result;
^
0_0_29272985_7062.c:47:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=1 ;i<=mn;i++){
^
0_0_29272985_7062.c:47:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_29272985_7062.c:49:8: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int j=1;j<=hn;j++)
^
0_0_29272985_7062.c:53:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=1;i<=hn;i++) slack[i]=INF;
^
0_0_29272985_7062.c:54:15: error: 'true' undeclared (first use in this function)
while(true){
^
0_0_29272985_7062.c:55:25: error: 'false' undeclared (first use in this function)
memset(visx,false,sizeof(visx));
^
|