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
|