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_17693655_17955.cpp:72:14: error: redefinition of 'int n'
 int dp[maxn],n;
              ^
0_0_17693655_17955.cpp:13:5: note: 'int n' previously declared here
 int n, pos[N];
     ^
0_0_17693655_17955.cpp: In function 'int main()':
0_0_17693655_17955.cpp:106:14: error: too many arguments to function 'void cdq(int, int)'
   cdq(1, n, n);
              ^
0_0_17693655_17955.cpp:75:6: note: declared here
 void cdq(int l, int r)//算出内部的贡献
      ^


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-07-01 04:56:36, Gzip enabled