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_16464907_1467.cpp: In function 'void gao()':
0_0_16464907_1467.cpp:35:27: error: 'memset' was not declared in this scope
     memset(dp,0,sizeof(dp));
                           ^
0_0_16464907_1467.cpp:44:62: error: 'max' was not declared in this scope
                 dp[i][j] = max(dp[i][j], dp[i-1][k]+num[i][j]);
                                                              ^
0_0_16464907_1467.cpp:50:33: error: 'max' was not declared in this scope
         ans = max(ans,dp[n-1][i]);
                                 ^
0_0_16464907_1467.cpp:52:22: error: 'printf' was not declared in this scope
     printf("%d\n",ans);
                      ^
0_0_16464907_1467.cpp: In function 'int main()':
0_0_16464907_1467.cpp:57:19: error: 'gets' was not declared in this scope
     while(gets(str)){
                   ^
0_0_16464907_1467.cpp:91:17: error: 'getchar' was not declared in this scope
         getchar();
                 ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-18 17:24:49, Gzip enabled