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_28598432_30983.cpp:7:8: error: the value of 'MAXN' is not usable in a constant expression
 bitset<MAXN> sto;
        ^
0_0_28598432_30983.cpp:5:13: note: 'int MAXN' is not const
 static int  MAXN = 10000005; 
             ^
0_0_28598432_30983.cpp:7:12: error: the value of 'MAXN' is not usable in a constant expression
 bitset<MAXN> sto;
            ^
0_0_28598432_30983.cpp:5:13: note: 'int MAXN' is not const
 static int  MAXN = 10000005; 
             ^
0_0_28598432_30983.cpp:7:12: note: in template argument for type 'long long unsigned int' 
 bitset<MAXN> sto;
            ^
0_0_28598432_30983.cpp:7:17: error: invalid type in declaration before ';' token
 bitset<MAXN> sto;
                 ^
0_0_28598432_30983.cpp: In function 'void count(int, int)':
0_0_28598432_30983.cpp:25:9: error: request for member 'set' in 'sto', which is of non-class type 'int'
     sto.set();
         ^
0_0_28598432_30983.cpp:26:9: error: request for member 'reset' in 'sto', which is of non-class type 'int'
     sto.reset(0);
         ^
0_0_28598432_30983.cpp:27:9: error: request for member 'reset' in 'sto', which is of non-class type 'int'
     sto.reset(1);
         ^
0_0_28598432_30983.cpp:30:18: error: invalid types 'int[int]' for array subscript
         if(!sto[i])
                  ^
0_0_28598432_30983.cpp:36:17: error: request for member 'reset' in 'sto', which is of non-class type 'int'
             sto.reset(i*j);
                 ^
0_0_28598432_30983.cpp: In function 'void get_init()':
0_0_28598432_30983.cpp:43:6: error: request for member 'set' in 'sto', which is of non-class type 'int'
  sto.set();
      ^
0_0_28598432_30983.cpp:44:9: error: request for member 'reset' in 'sto', which is of non-class type 'int'
     sto.reset(0);
         ^
0_0_28598432_30983.cpp:45:9: error: request for member 'reset' in 'sto', which is of non-class type 'int'
     sto.reset(1);
         ^
0_0_28598432_30983.cpp:47:12: error: invalid types 'int[int]' for array subscript
   if (sto[i]) {
            ^
0_0_28598432_30983.cpp:49:9: error: request for member 'reset' in 'sto', which is of non-class type 'int'
     sto.reset(j);
         ^
0_0_28598432_30983.cpp: In function 'int main()':
0_0_28598432_30983.cpp:65:17: error: invalid types 'int[int]' for array subscript
         if(sto[i] && is_huiwen(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-15 11:17:39, Gzip enabled