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_38424396_24571.cpp: In function 'int bfs(int, int)':
0_0_38424396_24571.cpp:82:87: error: 'num' was not declared in this scope
                 if(dx>=0 && dx<MAX && dy>=0 && dy<MAX && !visited[dx][dy] && !isprime[num]){//判断合法性
                                                                                       ^
0_0_38424396_24571.cpp:83:25: error: redeclaration of 'int num'
                     int num=grind[dx][dy];
                         ^
0_0_38424396_24571.cpp:82:87: note: '<typeprefixerror>num' previously declared here
                 if(dx>=0 && dx<MAX && dy>=0 && dy<MAX && !visited[dx][dy] && !isprime[num]){//判断合法性
                                                                                       ^


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-26 17:54:05, Gzip enabled