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_25288373_32090.cpp: In function 'void dp()':
0_0_25288373_32090.cpp:14:9: error: 'void dp()' redeclared as different kind of symbol
 void dp()
         ^
0_0_25288373_32090.cpp:5:31: note: previous declaration 'int dp [500100]'
 int n,m,head,tail,sum[N],q[N],dp[N];
                               ^
0_0_25288373_32090.cpp:20:92: error: ISO C++ forbids using pointer to a function in subtraction [-fpermissive]
    while(head<tail&&(getup(q[head+1])-getup(q[head]))<=sum[i]*(getdown[head+1]-getdown[head]))
                                                                                            ^
0_0_25288373_32090.cpp: In function 'int main()':
0_0_25288373_32090.cpp:38:7: error: 'dp' cannot be used as a function
    dp();
       ^


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-26 20:43:41, Gzip enabled