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_35772065_5422.cpp: In function 'int getdp(int, int)':
0_0_35772065_5422.cpp:7:18: error: 'm' was not declared in this scope
     return dp[j]+m+(sum[i]-sum[j])*(sum[i]-sum[j]);
                  ^
0_0_35772065_5422.cpp: In function 'int main()':
0_0_35772065_5422.cpp:24:17: error: 'n' was not declared in this scope
     while (cin>>n>>m)
                 ^
0_0_35772065_5422.cpp:24:20: error: 'm' was not declared in this scope
     while (cin>>n>>m)
                    ^
0_0_35772065_5422.cpp:29:9: error: 'h' was not declared in this scope
         h=1; t=0;
         ^
0_0_35772065_5422.cpp:29:14: error: 't' was not declared in this scope
         h=1; t=0;
              ^
0_0_35772065_5422.cpp:32:32: error: 'q' was not declared in this scope
             while (h<=t&&getup(q[h+1],q[h])<=
                                ^
0_0_35772065_5422.cpp:34:27: error: 'q' was not declared in this scope
             dp[i]=getdp(i,q[h]);
                           ^


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-22 12:50:51, Gzip enabled