0_0_20984162_14505.cpp:7:20: error: stray '#' in program
const int N = 2e5 + 2e4;
^
0_0_20984162_14505.cpp:19:27: error: stray '#' in program
return x * 10000 + 1e-8;
^
0_0_20984162_14505.cpp:33:27: error: stray '#' in program
for(int i=0;i<n;i++)
^
0_0_20984162_14505.cpp:33:32: error: stray '#' in program
for(int i=0;i<n;i++)
^
0_0_20984162_14505.cpp:35:18: error: stray '#' in program
sort(w,w+n);
^
0_0_20984162_14505.cpp:36:19: error: stray '#' in program
reach[ 0 + shift ] = true;
^
0_0_20984162_14505.cpp:37:27: error: stray '#' in program
for(int i=0;i<n;i++)
^
0_0_20984162_14505.cpp:37:32: error: stray '#' in program
for(int i=0;i<n;i++)
^
0_0_20984162_14505.cpp:44:35: error: stray '#' in program
reach[ j + w[i] ] = true;
^
0_0_20984162_14505.cpp:48:39: error: stray '#' in program
for(int j=-w[i];j<N;j++)
^
0_0_20984162_14505.cpp:48:44: error: stray '#' in program
for(int j=-w[i];j<N;j++)
^
0_0_20984162_14505.cpp:50:35: error: stray '#' in program
reach[ j + w[i] ] = true;
^
0_0_20984162_14505.cpp:53:23: error: stray '#' in program
int i = goal + shift , j = 0;
^
0_0_20984162_14505.cpp:62:18: error: stray '#' in program
if(i+j < N && reach[i+j])
^
0_0_20984162_14505.cpp:62:39: error: stray '#' in program
if(i+j < N && reach[i+j])
^
0_0_20984162_14505.cpp:64:26: error: stray '#' in program
ans = i + j;
^
0_0_20984162_14505.cpp:67:14: error: stray '#' in program
++j;
^
0_0_20984162_14505.cpp:67:19: error: stray '#' in program
++j;
^
0_0_20984162_14505.cpp:7:21: error: invalid operands of types 'double' and 'int' to binary 'operator&'
const int N = 2e5 + 2e4;
^
0_0_20984162_14505.cpp:7:25: error: expected unqualified-id before numeric constant
const int N = 2e5 + 2e4;
^
0_0_20984162_14505.cpp:11:13: error: size of array 'reach' is not an integral constant-expression
bool reach[N];
^
0_0_20984162_14505.cpp: In function 'int read()':
0_0_20984162_14505.cpp:19:28: error: invalid operands of types 'double' and 'int' to binary 'operator&'
return x * 10000 + 1e-8;
^
0_0_20984162_14505.cpp:20:5: error: 'else' without a previous 'if'
else
^
0_0_20984162_14505.cpp: In function 'int main()':
0_0_20984162_14505.cpp:33:30: error: expected ')' before ';' token
for(int i=0;i<n;i++)
^
0_0_20984162_14505.cpp:33:33: error: lvalue required as unary '&' operand
for(int i=0;i<n;i++)
^
0_0_20984162_14505.cpp:33:36: error: expected primary-expression before ')' token
for(int i=0;i<n;i++)
^
0_0_20984162_14505.cpp:35:19: error: invalid operands of types 'int [205]' and 'int' to binary 'operator&'
sort(w,w+n);
^
0_0_20984162_14505.cpp:35:23: error: expected ';' before ')' token
sort(w,w+n);
^
0_0_20984162_14505.cpp:36:22: error: expected ']' before ';' token
reach[ 0 + shift ] = true;
^
0_0_20984162_14505.cpp:36:30: error: expected ';' before ']' token
reach[ 0 + shift ] = true;
^
0_0_20984162_14505.cpp:37:30: error: expected ')' before ';' token
for(int i=0;i<n;i++)
^
0_0_20984162_14505.cpp:37:33: error: lvalue required as unary '&' operand
for(int i=0;i<n;i++)
^
0_0_20984162_14505.cpp:37:36: error: expected primary-expression before ')' token
for(int i=0;i<n;i++)
^
0_0_20984162_14505.cpp:53:36: error: 'j' was not declared in this scope
int i = goal + shift , j = 0;
^
0_0_20984162_14505.cpp:62:21: error: expected ')' before ';' token
if(i+j < N && reach[i+j])
^
0_0_20984162_14505.cpp:62:42: error: expected ']' before ';' token
if(i+j < N && reach[i+j])
^
0_0_20984162_14505.cpp:62:44: error: expected ';' before ']' token
if(i+j < N && reach[i+j])
^
0_0_20984162_14505.cpp:67:15: error: lvalue required as unary '&' operand
++j;
^
0_0_20984162_14505.cpp:67:20: error: lvalue required as unary '&' operand
++j;
^
|