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_36665623_8976.c:4:1: error: unknown type name 'using'
 using namespace std;
 ^
0_0_36665623_8976.c:4:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
 using namespace std;
                 ^
0_0_36665623_8976.c:6:5: error: variably modified 'p' at file scope
 int p[maxn][maxn], map[maxn], vis[maxn], x[maxn], y[maxn], n, m, k;
     ^
0_0_36665623_8976.c:6:5: error: variably modified 'p' at file scope
0_0_36665623_8976.c:6:20: error: variably modified 'map' at file scope
 int p[maxn][maxn], map[maxn], vis[maxn], x[maxn], y[maxn], n, m, k;
                    ^
0_0_36665623_8976.c:6:31: error: variably modified 'vis' at file scope
 int p[maxn][maxn], map[maxn], vis[maxn], x[maxn], y[maxn], n, m, k;
                               ^
0_0_36665623_8976.c:6:42: error: variably modified 'x' at file scope
 int p[maxn][maxn], map[maxn], vis[maxn], x[maxn], y[maxn], n, m, k;
                                          ^
0_0_36665623_8976.c:6:51: error: variably modified 'y' at file scope
 int p[maxn][maxn], map[maxn], vis[maxn], x[maxn], y[maxn], n, m, k;
                                                   ^
0_0_36665623_8976.c:7:1: error: unknown type name 'bool'
 bool find_path(int x)
 ^
0_0_36665623_8976.c: In function 'find_path':
0_0_36665623_8976.c:9:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int i = 1; i <= m; i++)
     ^
0_0_36665623_8976.c:9:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_36665623_8976.c:17:24: error: 'true' undeclared (first use in this function)
                 return true;
                        ^
0_0_36665623_8976.c:17:24: note: each undeclared identifier is reported only once for each function it appears in
0_0_36665623_8976.c:21:12: error: 'false' undeclared (first use in this function)
     return false;
            ^
0_0_36665623_8976.c: In function 'solve':
0_0_36665623_8976.c:27:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for(int i = 1; i <= n; i++)
     ^
0_0_36665623_8976.c: In function 'main':
0_0_36665623_8976.c:39:9: error: expected expression before ':' token
     ios::sync_with_stdio(false);
         ^
0_0_36665623_8976.c:46:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int i = 1; i <= k; i++)
         ^
0_0_36665623_8976.c:53:17: error: redefinition of 'i'
         for(int i = 1; i <= k; i++)
                 ^
0_0_36665623_8976.c:46:17: note: previous definition of 'i' was here
         for(int i = 1; i <= k; i++)
                 ^
0_0_36665623_8976.c:53:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int i = 1; i <= k; i++)
         ^


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-12-04 04:36:28, Gzip enabled