这道题不是个bfs吗
我就定义了个struct Node来放数据,然后要放的时候总报错,有没有dalao帮我调一下
struct Node { int num; int x,y; } Node tmp; tmp.x = x1; tmp.y = y1; s.push(Node(tmp));