0_0_13811978_12396.cpp:32:21: error: stray '\' in program
b = upper_bound(sum + 1,sum + 1 + K,dp[(i - 1) & 1][j - 1]) - sum;/\now killed j - 1
^
0_0_13811978_12396.cpp:35:17: error: stray '\' in program
next_a = upper_bound(sum + 1,sum + 1 + K,dp[(i - 1) & 1][j] + power[i]) - sum;/\not use power
^
0_0_13811978_12396.cpp: In function 'int main()':
0_0_13811978_12396.cpp:32:87: error: expected primary-expression before '/' token
b = upper_bound(sum + 1,sum + 1 + K,dp[(i - 1) & 1][j - 1]) - sum;/\now killed j - 1
^
0_0_13811978_12396.cpp:32:89: error: 'now' was not declared in this scope
b = upper_bound(sum + 1,sum + 1 + K,dp[(i - 1) & 1][j - 1]) - sum;/\now killed j - 1
^
0_0_13811978_12396.cpp:35:95: error: expected primary-expression before '/' token
next_a = upper_bound(sum + 1,sum + 1 + K,dp[(i - 1) & 1][j] + power[i]) - sum;/\not use power
^
0_0_13811978_12396.cpp:35:101: error: 'use' was not declared in this scope
next_a = upper_bound(sum + 1,sum + 1 + K,dp[(i - 1) & 1][j] + power[i]) - sum;/\not use power
^
0_0_13811978_12396.cpp:37:33: error: 'hurt_a' was not declared in this scope
if(a != next_a) hurt_a = sum[next_a - 1];
^
0_0_13811978_12396.cpp:38:23: error: 'hurt_b' was not declared in this scope
if(j) hurt_b = dp[(i - 1) & 1][j - 1] + (power[i] << 1);
^
0_0_13811978_12396.cpp:39:39: error: 'hurt_b' was not declared in this scope
if(j) if(b != next_b) hurt_b = sum[next_b - 1];
^
0_0_13811978_12396.cpp:40:41: error: 'hurt_a' was not declared in this scope
if(j)dp[i & 1][j] = Max(hurt_a,hurt_b);
^
0_0_13811978_12396.cpp:4:20: note: in definition of macro 'Max'
#define Max(a,b) ((a)>(b)?(a):(b))
^
0_0_13811978_12396.cpp:40:48: error: 'hurt_b' was not declared in this scope
if(j)dp[i & 1][j] = Max(hurt_a,hurt_b);
^
0_0_13811978_12396.cpp:4:24: note: in definition of macro 'Max'
#define Max(a,b) ((a)>(b)?(a):(b))
^
0_0_13811978_12396.cpp:41:37: error: 'hurt_a' was not declared in this scope
else dp[i & 1][j] = hurt_a;
^
|