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_37707951_16962.cpp: In function 'int main()':
0_0_37707951_16962.cpp:23:21: error: invalid types 'int[int]' for array subscript
               f[a][b]++;
                     ^
0_0_37707951_16962.cpp:27:21: error: 't' was not declared in this scope
               dp[i][t]=f[i][t];
                     ^
0_0_37707951_16962.cpp:33:69: error: invalid types 'int[int]' for array subscript
                   if(j==0)dp[j][i]=max(dp[0][i+1],dp[1][i+1])+f[j][i];
                                                                     ^
0_0_37707951_16962.cpp:34:76: error: invalid types 'int[int]' for array subscript
                   else if(j==10)dp[j][i]=max(dp[10][i+1],dp[9][i+1])+f[j][i];
                                                                            ^
0_0_37707951_16962.cpp:36:83: error: invalid types 'int[int]' for array subscript
                     dp[j][i]=max(max(dp[j][i+1],dp[j+1][i+1]),dp[j-1][i+1])+f[j][i];
                                                                                   ^


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-09-30 00:27:49, Gzip enabled