0_0_34824571_14873\Main.java:1: 错误: 非法字符: '#'
#include <bits/stdc++.h>
^
0_0_34824571_14873\Main.java:1: 错误: 需要class, interface或enum
#include <bits/stdc++.h>
^
0_0_34824571_14873\Main.java:5: 错误: 非法字符: '#'
#define endl "\n"
^
0_0_34824571_14873\Main.java:5: 错误: 需要class, interface或enum
#define endl "\n"
^
0_0_34824571_14873\Main.java:6: 错误: 非法字符: '#'
#define vb(x, y) v.push_back(make_pair(x, y))
^
0_0_34824571_14873\Main.java:9: 错误: 需要class, interface或enum
int bx, by;
^
0_0_34824571_14873\Main.java:10: 错误: 需要class, interface或enum
char G[15][15];
^
0_0_34824571_14873\Main.java:11: 错误: 需要class, interface或enum
char GG[15][15];
^
0_0_34824571_14873\Main.java:12: 错误: 需要class, interface或enum
struct node {
^
0_0_34824571_14873\Main.java:14: 错误: 需要class, interface或enum
int x, y;
^
0_0_34824571_14873\Main.java:15: 错误: 需要class, interface或enum
};
^
0_0_34824571_14873\Main.java:17: 错误: 需要class, interface或enum
vector<node> b;
^
0_0_34824571_14873\Main.java:18: 错误: 需要class, interface或enum
vector< pair<int, int> > v;
^
0_0_34824571_14873\Main.java:20: 错误: 需要class, interface或enum
bool flyG (int x, int y) {
^
0_0_34824571_14873\Main.java:22: 错误: 需要class, interface或enum
while (G[x][y] == 0) x++;
^
0_0_34824571_14873\Main.java:23: 错误: 需要class, interface或enum
if (G[x][y] == 'G') return true;
^
0_0_34824571_14873\Main.java:24: 错误: 需要class, interface或enum
return false;
^
0_0_34824571_14873\Main.java:25: 错误: 需要class, interface或enum
}
^
0_0_34824571_14873\Main.java:28: 错误: 需要class, interface或enum
while (x >= 1 && (G[x][y] == 0 || G[x][y] == 'g')) GG[x][y] = 'x', x--;
^
0_0_34824571_14873\Main.java:29: 错误: 需要class, interface或enum
GG[x][y] = 'x';
^
0_0_34824571_14873\Main.java:30: 错误: 需要class, interface或enum
}
^
0_0_34824571_14873\Main.java:34: 错误: 需要class, interface或enum
while (i >= 1 && (G[i][j] == 0 || G[i][j] == 'g')) GG[i][j] = 'x', i--;
^
0_0_34824571_14873\Main.java:35: 错误: 需要class, interface或enum
GG[i][j] = 'x';
^
0_0_34824571_14873\Main.java:36: 错误: 需要class, interface或enum
i = x + 1, j = y;
^
0_0_34824571_14873\Main.java:37: 错误: 需要class, interface或enum
while (i <= 10 && (G[i][j] == 0 || G[i][j] == 'g')) GG[i][j] = 'x', i++;
^
0_0_34824571_14873\Main.java:38: 错误: 需要class, interface或enum
GG[i][j] = 'x';
^
0_0_34824571_14873\Main.java:39: 错误: 需要class, interface或enum
i = x, j = y - 1;
^
0_0_34824571_14873\Main.java:40: 错误: 需要class, interface或enum
while (j >= 1 && (G[i][j] == 0 || G[i][j] == 'g')) GG[i][j] = 'x', j--;
^
0_0_34824571_14873\Main.java:41: 错误: 需要class, interface或enum
GG[i][j] = 'x';
^
0_0_34824571_14873\Main.java:42: 错误: 需要class, interface或enum
i = x, j = y + 1;
^
0_0_34824571_14873\Main.java:43: 错误: 需要class, interface或enum
while (j <= 10 && (G[i][j] == 0 || G[i][j] == 'g')) GG[i][j] = 'x', j++;
^
0_0_34824571_14873\Main.java:44: 错误: 需要class, interface或enum
GG[i][j] = 'x';
^
0_0_34824571_14873\Main.java:45: 错误: 需要class, interface或enum
}
^
0_0_34824571_14873\Main.java:50: 错误: 需要class, interface或enum
GG[x - 2][y + 1] = 'x';
^
0_0_34824571_14873\Main.java:51: 错误: 需要class, interface或enum
}
^
0_0_34824571_14873\Main.java:54: 错误: 需要class, interface或enum
GG[x + 2][y + 1] = 'x';
^
0_0_34824571_14873\Main.java:55: 错误: 需要class, interface或enum
}
^
0_0_34824571_14873\Main.java:58: 错误: 需要class, interface或enum
GG[x + 1][y - 2] = 'x';
^
0_0_34824571_14873\Main.java:59: 错误: 需要class, interface或enum
}
^
0_0_34824571_14873\Main.java:62: 错误: 需要class, interface或enum
GG[x + 1][y + 2] = 'x';
^
0_0_34824571_14873\Main.java:63: 错误: 需要class, interface或enum
}
^
0_0_34824571_14873\Main.java:68: 错误: 需要class, interface或enum
while (i >= 1 && (G[i][j] == 0)) i--; i--;
^
0_0_34824571_14873\Main.java:68: 错误: 需要class, interface或enum
while (i >= 1 && (G[i][j] == 0)) i--; i--;
^
0_0_34824571_14873\Main.java:69: 错误: 需要class, interface或enum
while (i >= 1 && (G[i][j] == 0 || G[i][j] == 'g')) GG[i][j] = 'x', i--;
^
0_0_34824571_14873\Main.java:70: 错误: 需要class, interface或enum
GG[i][j] = 'x';
^
0_0_34824571_14873\Main.java:71: 错误: 需要class, interface或enum
i = x + 1, j = y;
^
0_0_34824571_14873\Main.java:72: 错误: 需要class, interface或enum
while (i <= 10 && (G[i][j] == 0)) i++; i++;
^
0_0_34824571_14873\Main.java:72: 错误: 需要class, interface或enum
while (i <= 10 && (G[i][j] == 0)) i++; i++;
^
0_0_34824571_14873\Main.java:73: 错误: 需要class, interface或enum
while (i <= 10 && (G[i][j] == 0 || G[i][j] == 'g')) GG[i][j] = 'x', i++;
^
0_0_34824571_14873\Main.java:74: 错误: 需要class, interface或enum
GG[i][j] = 'x';
^
0_0_34824571_14873\Main.java:75: 错误: 需要class, interface或enum
i = x, j = y - 1;
^
0_0_34824571_14873\Main.java:76: 错误: 需要class, interface或enum
while (j >= 1 && (G[i][j] == 0)) j--; j--;
^
0_0_34824571_14873\Main.java:76: 错误: 需要class, interface或enum
while (j >= 1 && (G[i][j] == 0)) j--; j--;
^
0_0_34824571_14873\Main.java:77: 错误: 需要class, interface或enum
while (j >= 1 && (G[i][j] == 0 || G[i][j] == 'g')) GG[i][j] = 'x', j--;
^
0_0_34824571_14873\Main.java:78: 错误: 需要class, interface或enum
GG[i][j] = 'x';
^
0_0_34824571_14873\Main.java:79: 错误: 需要class, interface或enum
i = x, j = y + 1;
^
0_0_34824571_14873\Main.java:80: 错误: 需要class, interface或enum
while (j <= 10 && (G[i][j] == 0)) j++; j++;
^
0_0_34824571_14873\Main.java:80: 错误: 需要class, interface或enum
while (j <= 10 && (G[i][j] == 0)) j++; j++;
^
0_0_34824571_14873\Main.java:81: 错误: 需要class, interface或enum
while (j <= 10 && (G[i][j] == 0 || G[i][j] == 'g')) GG[i][j] = 'x', j++;
^
0_0_34824571_14873\Main.java:82: 错误: 需要class, interface或enum
GG[i][j] = 'x';
^
0_0_34824571_14873\Main.java:83: 错误: 需要class, interface或enum
}
^
0_0_34824571_14873\Main.java:87: 错误: 需要class, interface或enum
if (x == 1 && y == 5) vb(1, 4), vb(2, 5), vb(1, 6);
^
0_0_34824571_14873\Main.java:88: 错误: 需要class, interface或enum
if (x == 1 && y == 6) vb(1, 5), vb(2, 6);
^
0_0_34824571_14873\Main.java:89: 错误: 需要class, interface或enum
if (x == 2 && y == 4) vb(1, 4), vb(2, 5), vb(3, 4);
^
0_0_34824571_14873\Main.java:90: 错误: 需要class, interface或enum
if (x == 2 && y == 5) vb(1, 5), vb(2, 4), vb(2, 6), vb(3, 5);
^
0_0_34824571_14873\Main.java:91: 错误: 需要class, interface或enum
if (x == 2 && y == 6) vb(1, 6), vb(2, 5), vb(3, 6);
^
0_0_34824571_14873\Main.java:92: 错误: 需要class, interface或enum
if (x == 3 && y == 4) vb(2, 4), vb(3, 5);
^
0_0_34824571_14873\Main.java:93: 错误: 需要class, interface或enum
if (x == 3 && y == 5) vb(2, 5), vb(3, 4), vb(3, 6);
^
0_0_34824571_14873\Main.java:94: 错误: 需要class, interface或enum
if (x == 3 && y == 6) vb(2, 6), vb(3, 5);
^
0_0_34824571_14873\Main.java:95: 错误: 需要class, interface或enum
}
^
0_0_34824571_14873\Main.java:100: 错误: 需要class, interface或enum
while (cin >> N >> X >> Y) {
^
0_0_34824571_14873\Main.java:102: 错误: 需要class, interface或enum
b.clear();
^
0_0_34824571_14873\Main.java:103: 错误: 需要class, interface或enum
v.clear();
^
0_0_34824571_14873\Main.java:104: 错误: 需要class, interface或enum
memset(G, 0, sizeof(G));
^
0_0_34824571_14873\Main.java:105: 错误: 需要class, interface或enum
memset(GG, 0, sizeof(GG));
^
0_0_34824571_14873\Main.java:106: 错误: 需要class, interface或enum
bx = X, by = Y;
^
0_0_34824571_14873\Main.java:107: 错误: 需要class, interface或enum
G[bx][by] = 'g';
^
0_0_34824571_14873\Main.java:108: 错误: 需要class, interface或enum
node e;
^
0_0_34824571_14873\Main.java:109: 错误: 需要class, interface或enum
while (N--) {
^
0_0_34824571_14873\Main.java:111: 错误: 需要class, interface或enum
G[X][Y] = piece;
^
0_0_34824571_14873\Main.java:112: 错误: 需要class, interface或enum
e.piece = piece, e.x = X, e.y = Y;
^
0_0_34824571_14873\Main.java:113: 错误: 需要class, interface或enum
b.push_back(e);
^
0_0_34824571_14873\Main.java:114: 错误: 需要class, interface或enum
}
^
0_0_34824571_14873\Main.java:117: 错误: 需要class, interface或enum
continue;
^
0_0_34824571_14873\Main.java:118: 错误: 需要class, interface或enum
}
^
0_0_34824571_14873\Main.java:121: 错误: 需要class, interface或enum
else if (i.piece == 'H') checkH(i.x, i.y);
^
0_0_34824571_14873\Main.java:122: 错误: 需要class, interface或enum
else if (i.piece == 'R') checkR(i.x, i.y);
^
0_0_34824571_14873\M
|