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_17798148_29577.c:4:5: error: variably modified 'map' at file scope
 int map[N][N];
     ^
0_0_17798148_29577.c:4:5: error: variably modified 'map' at file scope
0_0_17798148_29577.c:5:1: error: unknown type name 'bool'
 bool flag=0;
 ^
0_0_17798148_29577.c:6:1: error: unknown type name 'bool'
 bool row[N][N+1];
 ^
0_0_17798148_29577.c:6:6: error: variably modified 'row' at file scope
 bool row[N][N+1];
      ^
0_0_17798148_29577.c:6:6: error: variably modified 'row' at file scope
0_0_17798148_29577.c:7:1: error: unknown type name 'bool'
 bool col[N][N+1];
 ^
0_0_17798148_29577.c:7:6: error: variably modified 'col' at file scope
 bool col[N][N+1];
      ^
0_0_17798148_29577.c:7:6: error: variably modified 'col' at file scope
0_0_17798148_29577.c:8:1: error: unknown type name 'bool'
 bool block[3][3][N+1];
 ^
0_0_17798148_29577.c:8:6: error: variably modified 'block' at file scope
 bool block[3][3][N+1];
      ^
0_0_17798148_29577.c: In function 'put':
0_0_17798148_29577.c:16:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for(int i=0;i<N;i++)
   ^
0_0_17798148_29577.c:16:3: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_17798148_29577.c:18:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
    for(int j=0;j<N;j++)
    ^
0_0_17798148_29577.c:34:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for(int i=1;i<=N;i++)
   ^


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