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_30835572_24589.cpp: In function 'int main()':
0_0_30835572_24589.cpp:12:31: error: 'memset' was not declared in this scope
         memset(dp,0,sizeof(dp));
                               ^
0_0_30835572_24589.cpp:26:70: error: 'max' was not declared in this scope
                 dp[i][j]=max(dp[i+1][j],max(dp[i+1][j-1],dp[i+1][j+1]))+dp[i][j];
                                                                      ^
0_0_30835572_24589.cpp:26:71: error: 'max' was not declared in this scope
                 dp[i][j]=max(dp[i+1][j],max(dp[i+1][j-1],dp[i+1][j+1]))+dp[i][j];
                                                                       ^
0_0_30835572_24589.cpp:26:71: error: redeclaration of '<typeprefixerror>max'
0_0_30835572_24589.cpp:26:70: note: previous declaration '<typeprefixerror>max'
                 dp[i][j]=max(dp[i+1][j],max(dp[i+1][j-1],dp[i+1][j+1]))+dp[i][j];
                                                                      ^
0_0_30835572_24589.cpp:31:13: error: expected '}' at end of input
     return 0;
             ^


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-10-03 09:28:49, Gzip enabled