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_29181522_29588.c:11:6: error: variably modified 's1' at file scope
 char s1[MAXN+10][MAXN+10];
      ^
0_0_29181522_29588.c:11:6: error: variably modified 's1' at file scope
0_0_29181522_29588.c:12:5: error: variably modified 'num' at file scope
 int num[MAXN+10][MAXN+10];
     ^
0_0_29181522_29588.c:12:5: error: variably modified 'num' at file scope
0_0_29181522_29588.c:13:1: error: unknown type name 'bool'
 bool vis1[MAXN][MAXN];
 ^
0_0_29181522_29588.c:13:6: error: variably modified 'vis1' at file scope
 bool vis1[MAXN][MAXN];
      ^
0_0_29181522_29588.c:13:6: error: variably modified 'vis1' at file scope
0_0_29181522_29588.c:14:1: error: unknown type name 'bool'
 bool vis2[MAXN][MAXN];
 ^
0_0_29181522_29588.c:14:6: error: variably modified 'vis2' at file scope
 bool vis2[MAXN][MAXN];
      ^
0_0_29181522_29588.c:14:6: error: variably modified 'vis2' at file scope
0_0_29181522_29588.c:15:1: error: unknown type name 'bool'
 bool vis3[MAXN][MAXN];
 ^
0_0_29181522_29588.c:15:6: error: variably modified 'vis3' at file scope
 bool vis3[MAXN][MAXN];
      ^
0_0_29181522_29588.c:15:6: error: variably modified 'vis3' at file scope
0_0_29181522_29588.c:20:13: error: variably modified 'T' at file scope
 struct node T[MAXN*MAXN+10];
             ^
0_0_29181522_29588.c:22:1: error: unknown type name 'bool'
 bool f1=false;
 ^
0_0_29181522_29588.c:22:9: error: 'false' undeclared here (not in a function)
 bool f1=false;
         ^
0_0_29181522_29588.c:23:1: error: unknown type name 'bool'
 bool judge(int x,int y,int goal){
 ^
0_0_29181522_29588.c: In function 'judge':
0_0_29181522_29588.c:30:9: error: 'true' undeclared (first use in this function)
  return true;
         ^
0_0_29181522_29588.c:30:9: note: each undeclared identifier is reported only once for each function it appears in
0_0_29181522_29588.c: In function 'DFS':
0_0_29181522_29588.c:36:6: error: 'true' undeclared (first use in this function)
   f1=true;
      ^
0_0_29181522_29588.c:37:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for(int i=0;i<9;i++){
   ^
0_0_29181522_29588.c:37:3: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_29181522_29588.c:38:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
    for(int j=0;j<9;j++){
    ^
0_0_29181522_29588.c:49:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for(int i=1;i<=9;i++){
   ^
0_0_29181522_29588.c: In function 'main':
0_0_29181522_29588.c:76:16: error: 'true' undeclared (first use in this function)
    vis1[0][t1]=true; 
                ^
0_0_29181522_29588.c:81:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for(int i=0;i<9;i++){
   ^
0_0_29181522_29588.c:83:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int j=1;j<9;j++){
     ^
0_0_29181522_29588.c:98:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int j=0;j<9;j++){
     ^


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-11-17 01:38:03, Gzip enabled