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_37816799_22319.cpp:61:18: error: 'i' was not declared in this scope
 int n,m,k,a[N],b[i],ans,x,y,q,cnt;
                  ^
0_0_37816799_22319.cpp: In function 'void Case_Test()':
0_0_37816799_22319.cpp:69:35: error: 'b' was not declared in this scope
     for (int i=1;i<=6;i++) a[i] = b[i] = 0;
                                   ^
0_0_37816799_22319.cpp:72:36: error: 'b' was not declared in this scope
     for (int i=1;i<=n;i++) cin>>x, b[x]++;
                                    ^
0_0_37816799_22319.cpp:74:21: error: 'b' was not declared in this scope
         if (a[i]>1||b[i]>1) ok = true;
                     ^


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-11-23 00:39:35, Gzip enabled