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_21844084_23656.cpp:6:20: error: array bound is not an integer constant before ']' token
 int T, n, k, a[MaxN];
                    ^
0_0_21844084_23656.cpp:7:12: error: array bound is not an integer constant before ']' token
 char b[MaxN];
            ^
0_0_21844084_23656.cpp:8:1: error: 'bitset' does not name a type
 bitset<MaxM> Right, Left;
 ^
0_0_21844084_23656.cpp: In function 'void solve()':
0_0_21844084_23656.cpp:14:16: error: 'b' was not declared in this scope
         switch(b[i])
                ^
0_0_21844084_23656.cpp:17:19: error: 'a' was not declared in this scope
             rmax+=a[i];
                   ^
0_0_21844084_23656.cpp:31:20: error: 'b' was not declared in this scope
             switch(b[i])
                    ^
0_0_21844084_23656.cpp:34:17: error: 'Right' was not declared in this scope
                 Right |= (Right<<a[i]);
                 ^
0_0_21844084_23656.cpp:34:34: error: 'a' was not declared in this scope
                 Right |= (Right<<a[i]);
                                  ^
0_0_21844084_23656.cpp:35:17: error: 'Left' was not declared in this scope
                 Left  |= (Left <<a[i]);
                 ^
0_0_21844084_23656.cpp:44:29: error: 'Right' was not declared in this scope
         if(k==0 ||  (k>0 && Right.test(k)) || (k<0 && Left.test(-k)) ) puts("yes");
                             ^
0_0_21844084_23656.cpp:44:55: error: 'Left' was not declared in this scope
         if(k==0 ||  (k>0 && Right.test(k)) || (k<0 && Left.test(-k)) ) puts("yes");
                                                       ^
0_0_21844084_23656.cpp: In function 'int main()':
0_0_21844084_23656.cpp:74:11: error: 'read' was not declared in this scope
     read(T);
           ^
0_0_21844084_23656.cpp:78:9: error: 'Left' was not declared in this scope
         Left.reset();
         ^
0_0_21844084_23656.cpp:79:9: error: 'Right' was not declared in this scope
         Right.reset();
         ^
0_0_21844084_23656.cpp:82:36: error: 'a' was not declared in this scope
         for(int i=1;i<=n;i++) read(a[i]);
                                    ^
0_0_21844084_23656.cpp:83:45: error: 'b' was not declared in this scope
         for(int i=1;i<=n;i++) scanf(" %c", &b[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 20:38:26, Gzip enabled