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_37380593_26165.c:1:1: error: stray '##' in program
 ##include <bits/stdc++.h>
 ^
0_0_37380593_26165.c:1:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
 ##include <bits/stdc++.h>
           ^
0_0_37380593_26165.c:5:6: error: variably modified 's' at file scope
 char s[N][N], vis[N][N];
      ^
0_0_37380593_26165.c:5:6: error: variably modified 's' at file scope
0_0_37380593_26165.c:5:15: error: variably modified 'vis' at file scope
 char s[N][N], vis[N][N];
               ^
0_0_37380593_26165.c:5:15: error: variably modified 'vis' at file scope
0_0_37380593_26165.c:10:1: error: unknown type name 'bool'
 bool check(int x, int y) {
 ^
0_0_37380593_26165.c: In function 'bfs':
0_0_37380593_26165.c:15:5: error: 'queue' undeclared (first use in this function)
     queue<node> q;
     ^
0_0_37380593_26165.c:15:5: note: each undeclared identifier is reported only once for each function it appears in
0_0_37380593_26165.c:15:11: error: 'node' undeclared (first use in this function)
     queue<node> q;
           ^
0_0_37380593_26165.c:15:17: error: 'q' undeclared (first use in this function)
     queue<node> q;
                 ^
0_0_37380593_26165.c:16:12: error: expected expression before '{' token
     q.push({x, y, -1});
            ^
0_0_37380593_26165.c:19:14: error: expected ';' before 't'
         node t = q.front();
              ^
0_0_37380593_26165.c:21:12: error: 't' undeclared (first use in this function)
         if(t.x == ex && t.y == ey && t.f <= k) {
            ^
0_0_37380593_26165.c:25:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int i = 0; i < 4; i++) {
         ^
0_0_37380593_26165.c:25:9: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_37380593_26165.c:26:18: error: expected ';' before 'now'
             node now;
                  ^
0_0_37380593_26165.c:27:13: error: 'now' undeclared (first use in this function)
             now.x = t.x + d[i][0];
             ^
0_0_37380593_26165.c: In function 'main':
0_0_37380593_26165.c:47:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for(int i = 0; i < n ; i++) scanf("%s", s[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-11-25 13:09:39, Gzip enabled