F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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");
                      ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-07-01 17:04:23, Gzip enabled