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