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_14476530_15717.cpp: In function 'int main()':
0_0_14476530_15717.cpp:42:62: error: expected primary-expression before '?' token
                     dp[i][0]=max(dp[i-1][0],dp[i-1][1]+a[i]);?//假设当前位为0,前一位为0则转换后还是0,前一位为1则转换后为1
                                                              ^
0_0_14476530_15717.cpp:43:61: error: expected ':' before ';' token
                     dp[i][1]=max(dp[i-1][0]+a[i],dp[i-1][1]);
                                                             ^
0_0_14476530_15717.cpp:43:61: error: expected primary-expression before ';' token


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-12-02 09:52:53, Gzip enabled