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_16229033_525.cpp:48:30: error: conflicting declaration 'int dp [100005]'
 int a[1005],b[1005],dp[100005];
                              ^
0_0_16229033_525.cpp:14:5: note: previous declaration as 'int dp [210][210]'
 int dp[210][210];
     ^
0_0_16229033_525.cpp:49:11: error: redefinition of 'int n'
 int w,v,c,n,V,l,r;
           ^
0_0_16229033_525.cpp:7:8: note: 'int n' previously declared here
 int T, n, m;
        ^
0_0_16229033_525.cpp:50:5: error: redefinition of 'int T'
 int T;
     ^
0_0_16229033_525.cpp:7:5: note: 'int T' previously declared here
 int T, n, m;
     ^
0_0_16229033_525.cpp: In function 'int main()':
0_0_16229033_525.cpp:56:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_16229033_525.cpp:16:5: note: 'int main()' previously defined here
 int main() {
     ^
0_0_16229033_525.cpp:74:39: error: invalid conversion from 'int*' to 'int' [-fpermissive]
                     insert(j,dp[j*v+d]-j*w);
                                       ^
0_0_16229033_525.cpp:51:6: note: initializing argument 2 of 'void insert(int, int)'
 void insert(int x,int y)
      ^
0_0_16229033_525.cpp:76:30: error: incompatible types in assignment of 'int' to 'int [210]'
                     dp[j*v+d]=b[l]+j*w;
                              ^


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-12-01 07:02:29, Gzip enabled