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))
^
|