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_18067976_4587.cpp:9:1: error: expected initializer before 'int'
 int r, c, mark[200][200][20], xx, yy;
 ^
0_0_18067976_4587.cpp: In function 'int main()':
0_0_18067976_4587.cpp:22:29: error: 'r' was not declared in this scope
     while (~scanf("%d %d", &r, &c))
                             ^
0_0_18067976_4587.cpp:22:33: error: 'c' was not declared in this scope
     while (~scanf("%d %d", &r, &c))
                                 ^
0_0_18067976_4587.cpp:27:16: error: 'map' was not declared in this scope
         memset(map, '#', sizeof(map));
                ^
0_0_18067976_4587.cpp:28:16: error: 'mark' was not declared in this scope
         memset(mark, 0, sizeof(mark));
                ^
0_0_18067976_4587.cpp:37:21: error: 'xx' was not declared in this scope
                     xx = i;
                     ^
0_0_18067976_4587.cpp:38:21: error: 'yy' was not declared in this scope
                     yy = j;
                     ^
0_0_18067976_4587.cpp: In function 'int bfs()':
0_0_18067976_4587.cpp:60:17: error: 'xx' was not declared in this scope
     q[tail].x = xx;
                 ^
0_0_18067976_4587.cpp:61:17: error: 'yy' was not declared in this scope
     q[tail].y = yy;
                 ^
0_0_18067976_4587.cpp:77:17: error: 'mark' was not declared in this scope
             if (mark[ttx][tty][ttkey] == 1)
                 ^
0_0_18067976_4587.cpp:79:13: error: 'mark' was not declared in this scope
             mark[ttx][tty][ttkey] = 1;
             ^
0_0_18067976_4587.cpp:80:17: error: 'map' was not declared in this scope
             if (map[ttx][tty] == '#')
                 ^
0_0_18067976_4587.cpp:82:17: error: 'map' was not declared in this scope
             if (map[ttx][tty] == 'X')
                 ^
0_0_18067976_4587.cpp:84:17: error: 'map' was not declared in this scope
             if (map[ttx][tty] == 'B')
                 ^


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-07-03 13:44:02, Gzip enabled