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]这个位置是否有棋子占据
| ^~~~~
|