0_0_20575808_3305.cpp:6:14: error: 'LL pow [20][20]' redeclared as different kind of symbol
LL pow[20][20],argmt[20];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:44:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:41,
from 0_0_20575808_3305.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:151:18: note: previous declaration 'double pow(double, double)'
double __cdecl pow(double _X,double _Y);
^
0_0_20575808_3305.cpp: In function 'LL dfs(int, LL, int)':
0_0_20575808_3305.cpp:13:19: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(len*pow[top][k]<sum) return 0;
^
0_0_20575808_3305.cpp:27:37: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
ret+=dfs(len-i,sum-i*pow[top][k],top-1);
^
0_0_20575808_3305.cpp: In function 'LL solve(LL)':
0_0_20575808_3305.cpp:45:41: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
ret+=sub_solve(i-1,sum-pow[j][k]);
^
0_0_20575808_3305.cpp:47:24: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
sum-=pow[bit[i]][k];//这里表示sum取到了最大的值
^
0_0_20575808_3305.cpp: In function 'int main()':
0_0_20575808_3305.cpp:58:14: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
pow[i][0]=1;
^
0_0_20575808_3305.cpp:59:36: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
for(int j=1;j<16;++j) pow[i][j]=pow[i][j-1]*i;
^
0_0_20575808_3305.cpp:59:46: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
for(int j=1;j<16;++j) pow[i][j]=pow[i][j-1]*i;
^
|