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_17246704_10532.cpp:7:21: error: expected initializer before 'cnt'
 int a[20], p[20], n cnt[1 << 16];
                     ^
0_0_17246704_10532.cpp: In function 'int main()':
0_0_17246704_10532.cpp:18:3: error: 'cnt' was not declared in this scope
   cnt[i] = __builtin_popcount(i);
   ^
0_0_17246704_10532.cpp:21:16: error: 'n' was not declared in this scope
   scanf("%d", &n);
                ^
0_0_17246704_10532.cpp:33:54: error: 'cnt' was not declared in this scope
       if((i >> k & 1) == 0 && (p[k] == -1 || p[k] == cnt[i])) 
                                                      ^


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-26 11:06:27, Gzip enabled