F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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));
                         ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-10-26 21:27:50, Gzip enabled