0_0_38281800_20585\Main.java:1: 错误: 非法字符: '#'
#include <bits/stdc++.h>
^
0_0_38281800_20585\Main.java:1: 错误: 需要class, interface或enum
#include <bits/stdc++.h>
^
0_0_38281800_20585\Main.java:3: 错误: 需要class, interface或enum
int d[8][2] = {1, 2, -1, 2, 1, -2, -1, -2, 2, 1, 2, -1, -2, 1, -2, -1};
^
0_0_38281800_20585\Main.java:4: 错误: 需要class, interface或enum
int dir[8][2] = {{1, -2}, {2, -1}, {2, 1}, {1, 2}, {-1, 2}, {-2, 1}, {-2, -1}, {-1, -2}};
^
0_0_38281800_20585\Main.java:5: 错误: 需要class, interface或enum
int vis[100][100];
^
0_0_38281800_20585\Main.java:6: 错误: 需要class, interface或enum
int sx, sy, fx, fy, step;
^
0_0_38281800_20585\Main.java:7: 错误: 需要class, interface或enum
struct node
^
0_0_38281800_20585\Main.java:10: 错误: 需要class, interface或enum
};
^
0_0_38281800_20585\Main.java:11: 错误: 需要class, interface或enum
void bfs()
^
0_0_38281800_20585\Main.java:14: 错误: 需要class, interface或enum
queue<node> q;
^
0_0_38281800_20585\Main.java:15: 错误: 需要class, interface或enum
node s, e;
^
0_0_38281800_20585\Main.java:16: 错误: 需要class, interface或enum
s.x = sx;
^
0_0_38281800_20585\Main.java:17: 错误: 需要class, interface或enum
s.y = sy;
^
0_0_38281800_20585\Main.java:18: 错误: 需要class, interface或enum
s.step = 0;
^
0_0_38281800_20585\Main.java:19: 错误: 需要class, interface或enum
vis[s.x][s.y] = 1;
^
0_0_38281800_20585\Main.java:20: 错误: 需要class, interface或enum
q.push(s);
^
0_0_38281800_20585\Main.java:21: 错误: 需要class, interface或enum
while (!q.empty())
^
0_0_38281800_20585\Main.java:24: 错误: 需要class, interface或enum
q.pop();
^
0_0_38281800_20585\Main.java:25: 错误: 需要class, interface或enum
if (s.x == fx && s.y == fy)
^
0_0_38281800_20585\Main.java:28: 错误: 需要class, interface或enum
return;
^
0_0_38281800_20585\Main.java:29: 错误: 需要class, interface或enum
}
^
0_0_38281800_20585\Main.java:30: 错误: 需要class, interface或enum
for (int i = 0; i < 8; ++i)
^
0_0_38281800_20585\Main.java:30: 错误: 需要class, interface或enum
for (int i = 0; i < 8; ++i)
^
0_0_38281800_20585\Main.java:33: 错误: 需要class, interface或enum
e.y = s.y + dir[i][1];
^
0_0_38281800_20585\Main.java:34: 错误: 需要class, interface或enum
if (e.x >= 1 && e.x <= 8 && e.y >= 1 && e.y <= 8 && !vis[e.x][e.y])
^
0_0_38281800_20585\Main.java:37: 错误: 需要class, interface或enum
vis[e.x][e.y] = 1;
^
0_0_38281800_20585\Main.java:38: 错误: 需要class, interface或enum
q.push(e);
^
0_0_38281800_20585\Main.java:39: 错误: 需要class, interface或enum
}
^
0_0_38281800_20585\Main.java:46: 错误: 需要class, interface或enum
int x1, y1;
^
0_0_38281800_20585\Main.java:47: 错误: 需要class, interface或enum
while (~scanf("%c%d %c%d", &c1, &x1, &c2, &y1))
^
0_0_38281800_20585\Main.java:50: 错误: 需要class, interface或enum
sx = c1 - 'a' + 1;
^
0_0_38281800_20585\Main.java:51: 错误: 需要class, interface或enum
sy = x1;
^
0_0_38281800_20585\Main.java:52: 错误: 需要class, interface或enum
fx = c2 - 'a' + 1;
^
0_0_38281800_20585\Main.java:53: 错误: 需要class, interface或enum
fy = y1;
^
0_0_38281800_20585\Main.java:54: 错误: 需要class, interface或enum
bfs();
^
0_0_38281800_20585\Main.java:55: 错误: 需要class, interface或enum
printf("To get from %c%d to %c%d takes %d knight moves.\n", c1, x1, c2, y1, step);
^
0_0_38281800_20585\Main.java:56: 错误: 需要class, interface或enum
}
^
0_0_38281800_20585\Main.java:58: 错误: 需要class, interface或enum
}
^
38 个错误
|