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_25642875_25151.cpp:12:1: error: 'll' does not name a type
 ll dp[MAXN], bit[MAXN]; 
 ^
0_0_25642875_25151.cpp:13:1: error: 'll' does not name a type
 ll ans[15];
 ^
0_0_25642875_25151.cpp: In function 'void init()':
0_0_25642875_25151.cpp:26:9: error: 'dp' was not declared in this scope
  memset(dp, 0, sizeof dp);
         ^
0_0_25642875_25151.cpp:27:9: error: 'ans' was not declared in this scope
  memset(ans, 0, sizeof ans);
         ^
0_0_25642875_25151.cpp: In function 'int main()':
0_0_25642875_25151.cpp:31:3: error: 'bit' was not declared in this scope
   bit[i] = calc(i);
   ^
0_0_25642875_25151.cpp:37:3: error: 'dp' was not declared in this scope
   dp[0] = 1;
   ^
0_0_25642875_25151.cpp:47:7: error: 'ans' was not declared in this scope
       ans[bit[i]] += dp[i - (1 << u) - (1 << v)];
       ^
0_0_25642875_25151.cpp:47:11: error: 'bit' was not declared in this scope
       ans[bit[i]] += dp[i - (1 << u) - (1 << v)];
           ^
0_0_25642875_25151.cpp:57:7: error: 'ans' was not declared in this scope
       ans[bit[i]] -= dp[i - (1 << u) - (1 << v)];
       ^
0_0_25642875_25151.cpp:57:11: error: 'bit' was not declared in this scope
       ans[bit[i]] -= dp[i - (1 << u) - (1 << v)];
           ^
0_0_25642875_25151.cpp:64:22: error: 'ans' was not declared in this scope
     printf("%lld%c", ans[i], i == n ? '\n' : ' ');
                      ^


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-30 09:22:59, Gzip enabled