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;
^
|