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_31150976_26270.cpp: In function 'int main()':
0_0_31150976_26270.cpp:34:28: error: the value of 'N' is not usable in a constant expression
                     bitset<N>b (x);
                            ^
0_0_31150976_26270.cpp:27:19: note: 'N' was not initialized with a constant expression
         const int N=nn;
                   ^
0_0_31150976_26270.cpp:34:29: error: the value of 'N' is not usable in a constant expression
                     bitset<N>b (x);
                             ^
0_0_31150976_26270.cpp:27:19: note: 'N' was not initialized with a constant expression
         const int N=nn;
                   ^
0_0_31150976_26270.cpp:34:29: note: in template argument for type 'long long unsigned int' 
                     bitset<N>b (x);
                             ^
0_0_31150976_26270.cpp:34:32: error: invalid type in declaration before '(' token
                     bitset<N>b (x);
                                ^
0_0_31150976_26270.cpp:36:31: error: invalid types 'int[int]' for array subscript
                         if(b[k]==0){
                               ^
0_0_31150976_26270.cpp:65:20: error: the value of 'N' is not usable in a constant expression
             bitset<N>b(a[i]);
                    ^
0_0_31150976_26270.cpp:27:19: note: 'N' was not initialized with a constant expression
         const int N=nn;
                   ^
0_0_31150976_26270.cpp:65:21: error: the value of 'N' is not usable in a constant expression
             bitset<N>b(a[i]);
                     ^
0_0_31150976_26270.cpp:27:19: note: 'N' was not initialized with a constant expression
         const int N=nn;
                   ^
0_0_31150976_26270.cpp:65:21: note: in template argument for type 'long long unsigned int' 
             bitset<N>b(a[i]);
                     ^
0_0_31150976_26270.cpp:65:23: error: invalid type in declaration before '(' token
             bitset<N>b(a[i]);
                       ^
0_0_31150976_26270.cpp:69:23: error: invalid types 'int[int]' for array subscript
                 if(b[x]==0){
                       ^


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.015600(s) query 1, Server time : 2024-11-24 23:56:25, Gzip enabled