F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-29 20:26:08, Gzip enabled