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_39802364_13923.cpp: In function 'int main()':
0_0_39802364_13923.cpp:18:41: error: invalid types 'long long int[int]' for array subscript
   18 |                                 dp[i][j][0] = max(dp[i-1][j][0],dp[i-1][j][1]);
      |                                         ^
0_0_39802364_13923.cpp:18:61: error: invalid types 'long long int[int]' for array subscript
   18 |                                 dp[i][j][0] = max(dp[i-1][j][0],dp[i-1][j][1]);
      |                                                             ^
0_0_39802364_13923.cpp:18:75: error: invalid types 'long long int[int]' for array subscript
   18 |                                 dp[i][j][0] = max(dp[i-1][j][0],dp[i-1][j][1]);
      |                                                                           ^
0_0_39802364_13923.cpp:19:41: error: invalid types 'long long int[int]' for array subscript
   19 |                                 dp[i][j][1] = max(dp[i-1][j][1],max(dp[i-1][j-1][1],dp[i-1][j-1][0])) + a[i];
      |                                         ^
0_0_39802364_13923.cpp:19:61: error: invalid types 'long long int[int]' for array subscript
   19 |                                 dp[i][j][1] = max(dp[i-1][j][1],max(dp[i-1][j-1][1],dp[i-1][j-1][0])) + a[i];
      |                                                             ^
0_0_39802364_13923.cpp:19:81: error: invalid types 'long long int[int]' for array subscript
   19 |                                 dp[i][j][1] = max(dp[i-1][j][1],max(dp[i-1][j-1][1],dp[i-1][j-1][0])) + a[i];
      |                                                                                 ^
0_0_39802364_13923.cpp:19:97: error: invalid types 'long long int[int]' for array subscript
   19 |                                 dp[i][j][1] = max(dp[i-1][j][1],max(dp[i-1][j-1][1],dp[i-1][j-1][0])) + a[i];
      |                                                                                                 ^
0_0_39802364_13923.cpp:22:37: error: invalid types 'long long int[int]' for array subscript
   22 |                 cout << max(dp[n][m][0],dp[n][m][1]);
      |                                     ^
0_0_39802364_13923.cpp:22:49: error: invalid types 'long long int[int]' for array subscript
   22 |                 cout << max(dp[n][m][0],dp[n][m][1]);
      |                                                 ^


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-24 19:21:38, Gzip enabled