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_36003658_9987.cpp:1:1: error: 'nclude' does not name a type
 nclude <bits/stdc++.h>
 ^
0_0_36003658_9987.cpp: In function 'int main()':
0_0_36003658_9987.cpp:8:23: error: 'scanf' was not declared in this scope
  while (~scanf("%d",&n),n)
                       ^
0_0_36003658_9987.cpp:10:27: error: 'memset' was not declared in this scope
   memset(dp, 0, sizeof(dp));
                           ^
0_0_36003658_9987.cpp:24:73: 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]));
                                                                         ^
0_0_36003658_9987.cpp:24:74: 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]));
                                                                          ^
0_0_36003658_9987.cpp:24:74: error: redeclaration of '<typeprefixerror>max'
0_0_36003658_9987.cpp:24:73: note: previous declaration '<typeprefixerror>max'
     dp[i][j] += max(dp[i + 1][j], max(dp[i + 1][j + 1], dp[i + 1][j - 1]));
                                                                         ^
0_0_36003658_9987.cpp:27:3: error: 'cout' was not declared in this scope
   cout << dp[0][5] << endl;
   ^
0_0_36003658_9987.cpp:27:23: error: 'endl' was not declared in this scope
   cout << dp[0][5] << endl;
                       ^


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-12-03 09:54:59, Gzip enabled