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_13969740_24621.cpp:20:1: error: 'LL' does not name a type
 LL mx,mmax[MAXN],dp[MAXN],a[MAXN];
 ^
0_0_13969740_24621.cpp: In function 'int main()':
0_0_13969740_24621.cpp:23:22: error: 'a' was not declared in this scope
   g(i,1,n)scanf("%d",a + i);
                      ^
0_0_13969740_24621.cpp:24:10: error: 'dp' was not declared in this scope
   memset(dp,0,sizeof dp);
          ^
0_0_13969740_24621.cpp:25:10: error: 'mmax' was not declared in this scope
   memset(mmax,0,sizeof mmax);
          ^
0_0_13969740_24621.cpp:27:4: error: 'mx' was not declared in this scope
    mx = -MAXN;
    ^
0_0_13969740_24621.cpp:31:47: error: 'a' was not declared in this scope
     dp[j] = std::max(dp[j - 1],mmax[j - 1]) + a[j];
                                               ^
0_0_13969740_24621.cpp:36:20: error: 'mx' was not declared in this scope
   printf("%I64d\n",mx);
                    ^


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-29 01:15:26, Gzip enabled