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_24489459_20635.cpp:5:1: error: 'LONG' does not name a type
 LONG dp[2][310][235] ;
 ^
0_0_24489459_20635.cpp:6:1: error: 'LONG' does not name a type
 LONG v[20100] ;
 ^
0_0_24489459_20635.cpp:7:1: error: 'LONG' does not name a type
 LONG Sum[20100] ;
 ^
0_0_24489459_20635.cpp: In function 'int main()':
0_0_24489459_20635.cpp:16:9: error: 'Sum' was not declared in this scope
         Sum[0] = 0 ;
         ^
0_0_24489459_20635.cpp:17:14: error: 'dp' was not declared in this scope
         clr0(dp) ;
              ^
0_0_24489459_20635.cpp:17:16: error: 'clr0' was not declared in this scope
         clr0(dp) ;
                ^
0_0_24489459_20635.cpp:18:49: error: 'v' was not declared in this scope
         for(int i =1;i<= n ; ++ i)scanf("%lld",&v[i]) , Sum[i] = Sum[i-1] + v[i] ;
                                                 ^
0_0_24489459_20635.cpp:28:83: error: 'v' was not declared in this scope
                 dp[0][i&255][j] = max(dp[1][i+j&255][j] , dp[1][i+j+1&255][j+1] + v[i+j]) + Sum[i+j-1] - Sum[i-1] ;
                                                                                   ^


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-28 16:21:14, Gzip enabled