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_25142523_13964.cpp:13:1: error: expected initializer before 'int'
 int answer_dist, answer_len;
 ^
0_0_25142523_13964.cpp: In function 'void queue2_push(int, int, int)':
0_0_25142523_13964.cpp:101:6: error: 'visit' was not declared in this scope
  if (visit[row][col] >= min)
      ^
0_0_25142523_13964.cpp:120:3: error: 'visit' was not declared in this scope
   visit[row][col] = min;
   ^
0_0_25142523_13964.cpp: In function 'void queue3_push(int, int, int)':
0_0_25142523_13964.cpp:151:7: error: 'visit' was not declared in this scope
  if ((visit[row][col] == 1) || (dist[row][col] < answer_dist))
       ^
0_0_25142523_13964.cpp:151:50: error: 'answer_dist' was not declared in this scope
  if ((visit[row][col] == 1) || (dist[row][col] < answer_dist))
                                                  ^
0_0_25142523_13964.cpp:158:2: error: 'visit' was not declared in this scope
  visit[row][col] = 1;
  ^
0_0_25142523_13964.cpp: In function 'void find_dist()':
0_0_25142523_13964.cpp:201:4: error: 'visit' was not declared in this scope
    visit[i][j] = 0;
    ^
0_0_25142523_13964.cpp:212:19: error: 'answer_dist' was not declared in this scope
    if (cur.dist > answer_dist)
                   ^
0_0_25142523_13964.cpp:219:20: error: 'answer_dist' was not declared in this scope
    if (cur.dist <= answer_dist)
                    ^
0_0_25142523_13964.cpp: In function 'void find_step()':
0_0_25142523_13964.cpp:238:4: error: 'visit' was not declared in this scope
    visit[i][j] = 0;
    ^
0_0_25142523_13964.cpp:248:4: error: 'answer_len' was not declared in this scope
    answer_len = queue[head].dist;
    ^
0_0_25142523_13964.cpp: In function 'int main()':
0_0_25142523_13964.cpp:273:3: error: 'answer_dist' was not declared in this scope
   answer_dist = -1;
   ^
0_0_25142523_13964.cpp:276:34: error: 'answer_len' was not declared in this scope
   printf("%d %d\n", answer_dist, answer_len);
                                  ^


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-23 11:16:12, Gzip enabled