0_0_14601443_17177.cpp:37:11: error: redefinition of 'const int maxn'
const int maxn=5000;
^
0_0_14601443_17177.cpp:5:11: note: 'const int maxn' previously defined here
const int maxn=5000;
^
0_0_14601443_17177.cpp:38:5: error: redefinition of 'int n'
int n,V;
^
0_0_14601443_17177.cpp:6:5: note: 'int n' previously declared here
int n,V;
^
0_0_14601443_17177.cpp:38:7: error: redefinition of 'int V'
int n,V;
^
0_0_14601443_17177.cpp:6:7: note: 'int V' previously declared here
int n,V;
^
0_0_14601443_17177.cpp:39:11: error: redefinition of 'int w [5000]'
int w[maxn];
^
0_0_14601443_17177.cpp:7:5: note: 'int w [5000]' previously declared here
int w[maxn];
^
0_0_14601443_17177.cpp:40:12: error: redefinition of 'int dp [5000]'
int dp[maxn];
^
0_0_14601443_17177.cpp:8:5: note: 'int dp [5000]' previously declared here
int dp[maxn];
^
0_0_14601443_17177.cpp: In function 'int main()':
0_0_14601443_17177.cpp:41:5: error: redefinition of 'int main()'
int main()
^
0_0_14601443_17177.cpp:9:5: note: 'int main()' previously defined here
int main()
^
|