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_36980120_13854.cpp:3:7: error: 'll' does not name a type
 const ll N=1e6+10;
       ^
0_0_36980120_13854.cpp:5:8: error: 'N' was not declared in this scope
 ll val[N],s[N],dp[N];
        ^
0_0_36980120_13854.cpp:5:13: error: 'N' was not declared in this scope
 ll val[N],s[N],dp[N];
             ^
0_0_36980120_13854.cpp:5:19: error: 'N' was not declared in this scope
 ll val[N],s[N],dp[N];
                   ^
0_0_36980120_13854.cpp:6:6: error: 'N' was not declared in this scope
 ll q[N],head,tail;
      ^
0_0_36980120_13854.cpp: In function 'll g_u(ll, ll)':
0_0_36980120_13854.cpp:9:12: error: 'dp' was not declared in this scope
     return dp[j]-dp[i]+s[j]*s[j]-s[i]*s[i];
            ^
0_0_36980120_13854.cpp:9:24: error: 's' was not declared in this scope
     return dp[j]-dp[i]+s[j]*s[j]-s[i]*s[i];
                        ^
0_0_36980120_13854.cpp: In function 'll g_d(ll, ll)':
0_0_36980120_13854.cpp:12:15: error: 's' was not declared in this scope
     return 2*(s[j]-s[i]);
               ^
0_0_36980120_13854.cpp: In function 'int main()':
0_0_36980120_13854.cpp:17:14: error: 'val' was not declared in this scope
         cin>>val[i];
              ^
0_0_36980120_13854.cpp:18:9: error: 's' was not declared in this scope
         s[i]=s[i-1]+val[i];
         ^
0_0_36980120_13854.cpp:21:5: error: 'q' was not declared in this scope
     q[1]=0;
     ^
0_0_36980120_13854.cpp:24:9: error: 'dp' was not declared in this scope
         dp[i]=dp[id]+m+(s[i]-s[id])*(s[i]-s[id]);
         ^
0_0_36980120_13854.cpp:24:25: error: 's' was not declared in this scope
         dp[i]=dp[id]+m+(s[i]-s[id])*(s[i]-s[id]);
                         ^
0_0_36980120_13854.cpp:29:11: error: 'dp' was not declared in this scope
     cout<<dp[n]<<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-11-23 03:36:14, Gzip enabled