bootfall.cpp:2:0: warning: ignoring #pragma GCC optimization [-Wunknown-pragmas]
#pragma GCC optimization("O3")
bootfall.cpp:3:0: warning: ignoring #pragma GCC optimization [-Wunknown-pragmas]
#pragma GCC optimization("unroll-loops")
bootfall.cpp: In function 'int main()':
bootfall.cpp:34:12: error: the value of 'sm' is not usable in a constant expression
bitset<sm+1>f[n+1];
^
bootfall.cpp:22:15: note: 'int sm' is not const
int n,a[nmax],sm,i,j;
^~
bootfall.cpp:34:13: error: the value of 'sm' is not usable in a constant expression
bitset<sm+1>f[n+1];
^
bootfall.cpp:22:15: note: 'int sm' is not const
int n,a[nmax],sm,i,j;
^~
bootfall.cpp:34:13: note: in template argument for type 'long unsigned int'
bitset<sm+1>f[n+1];
^
bootfall.cpp:37:9: error: invalid types 'int[int]' for array subscript
f[i][0]=1;
^
bootfall.cpp:43:16: error: invalid types 'int[int]' for array subscript
if(!f[0][sm/2])rc(0);
^
bootfall.cpp:49:43: error: invalid types 'int[int]' for array subscript
if((sm-a[j]+i)&1 || !f[j][(sm-a[j]+i)/2])break;
^