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_14043263_23874.cpp: In function 'void BFS(int)':
0_0_14043263_23874.cpp:75:36: error: 'k' was not declared in this scope
  if (!worked[mark[v0][i]] && dd[Qs[k][0] + Qs[k][1] - v0] == 2) {
                                    ^
0_0_14043263_23874.cpp:76:10: error: redeclaration of 'int k'
      int k = mark[v0][i];
          ^
0_0_14043263_23874.cpp:75:36: note: '<typeprefixerror>k' previously declared here
  if (!worked[mark[v0][i]] && dd[Qs[k][0] + Qs[k][1] - v0] == 2) {
                                    ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-18 18:37:30, Gzip enabled