0_0_21658018_19605.cpp:3:17: error: expected ']' before ';' token
#define N 100010;
^
0_0_21658018_19605.cpp:4:15: note: in expansion of macro 'N'
int n, k, par[N], sz[N];
^
0_0_21658018_19605.cpp:4:16: error: expected unqualified-id before ']' token
int n, k, par[N], sz[N];
^
0_0_21658018_19605.cpp:4:23: error: expected unqualified-id before ']' token
int n, k, par[N], sz[N];
^
0_0_21658018_19605.cpp: In function 'int main()':
0_0_21658018_19605.cpp:10:43: error: 'par' was not declared in this scope
for (int i = 2; i <= n; i++)scanf("%d", par + i);
^
0_0_21658018_19605.cpp:11:38: error: 'sz' was not declared in this scope
for (int i = 1; i <= n; i++) sz[i]=1;
^
0_0_21658018_19605.cpp:14:10: error: 'sz' was not declared in this scope
ok &= sz[i] <= 2, sz[par[i]] += sz[i] & 1;
^
0_0_21658018_19605.cpp:14:25: error: 'par' was not declared in this scope
ok &= sz[i] <= 2, sz[par[i]] += sz[i] & 1;
^
0_0_21658018_19605.cpp:15:22: error: 'K' was not declared in this scope
puts(n % 2 == 0 && K >= n / 2 - 1 && ok ? "Bob" : "Alice");
^
|