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_39693620_28773.cpp: In function 'bool bfs(int, state)':
0_0_39693620_28773.cpp:98:63: error: invalid conversion from 'node*' to 'int' [-fpermissive]
   98 |                     if(!v.pos[i].check()||!judge(v.pos[i].y,u.pos,i))//如果还有就循环
      |                                                             ~~^~~
      |                                                               |
      |                                                               node*
0_0_39693620_28773.cpp:98:67: error: invalid conversion from 'int' to 'node*' [-fpermissive]
   98 |                     if(!v.pos[i].check()||!judge(v.pos[i].y,u.pos,i))//如果还有就循环
      |                                                                   ^
      |                                                                   |
      |                                                                   int
0_0_39693620_28773.cpp:98:49: error: too few arguments to function 'bool judge(int, int, node*, int)'
   98 |                     if(!v.pos[i].check()||!judge(v.pos[i].y,u.pos,i))//如果还有就循环
      |                                            ~~~~~^~~~~~~~~~~~~~~~~~~~
0_0_39693620_28773.cpp:44:6: note: declared here
   44 | bool judge(int x,int y,node *a,int v){//判断[x,y]这个位置是否有棋子占据
      |      ^~~~~


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-17 02:31:02, Gzip enabled