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_26427560_24856.cpp: In function 'void bfs(int, int, int, int)':
0_0_26427560_24856.cpp:32:9: error: no match for 'operator[]' (operand types are 'node' and 'int')
    if((a[nx][ny]==0||a[nx][ny]==a[x2][y2])&&vis[nx][ny]==0&&nx<=n&&nx>=1&&ny<=m&&ny>=1)
         ^
0_0_26427560_24856.cpp:32:23: error: no match for 'operator[]' (operand types are 'node' and 'int')
    if((a[nx][ny]==0||a[nx][ny]==a[x2][y2])&&vis[nx][ny]==0&&nx<=n&&nx>=1&&ny<=m&&ny>=1)
                       ^
0_0_26427560_24856.cpp:32:34: error: no match for 'operator[]' (operand types are 'node' and 'int')
    if((a[nx][ny]==0||a[nx][ny]==a[x2][y2])&&vis[nx][ny]==0&&nx<=n&&nx>=1&&ny<=m&&ny>=1)
                                  ^


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-12-02 20:34:20, Gzip enabled