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_21734062_16353.cpp:1:1: error: 'T' does not name a type
 T,a[200],f[200],n,k,c,g,i;main() {
 ^
0_0_21734062_16353.cpp: In function 'int main()':
0_0_21734062_16353.cpp:2:18: error: 'T' was not declared in this scope
  for(scanf("%d",&T);T--;){
                  ^
0_0_21734062_16353.cpp:2:19: error: 'scanf' was not declared in this scope
  for(scanf("%d",&T);T--;){
                   ^
0_0_21734062_16353.cpp:3:17: error: 'n' was not declared in this scope
   scanf("%d%d",&n,&k);c=g=0;
                 ^
0_0_21734062_16353.cpp:3:20: error: 'k' was not declared in this scope
   scanf("%d%d",&n,&k);c=g=0;
                    ^
0_0_21734062_16353.cpp:3:23: error: 'c' was not declared in this scope
   scanf("%d%d",&n,&k);c=g=0;
                       ^
0_0_21734062_16353.cpp:3:25: error: 'g' was not declared in this scope
   scanf("%d%d",&n,&k);c=g=0;
                         ^
0_0_21734062_16353.cpp:4:7: error: 'i' was not declared in this scope
   for(i=1;i++<n;) a[i]=scanf("%d", f+i);
       ^
0_0_21734062_16353.cpp:4:19: error: 'a' was not declared in this scope
   for(i=1;i++<n;) a[i]=scanf("%d", f+i);
                   ^
0_0_21734062_16353.cpp:4:36: error: 'f' was not declared in this scope
   for(i=1;i++<n;) a[i]=scanf("%d", f+i);
                                    ^
0_0_21734062_16353.cpp:5:7: error: 'i' was not declared in this scope
   for(i=n;i>=1;--i) {
       ^
0_0_21734062_16353.cpp:6:4: error: 'a' was not declared in this scope
    a[f[i]]+=a[i]&1;
    ^
0_0_21734062_16353.cpp:6:6: error: 'f' was not declared in this scope
    a[f[i]]+=a[i]&1;
      ^
0_0_21734062_16353.cpp:10:49: error: 'puts' was not declared in this scope
   puts(((n&1) || (c>k) || (g)) ? "Alice" : "Bob");
                                                 ^


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-06-29 13:50:40, Gzip enabled