0_0_33812446_8414.cpp:6:32: error: 'int pow [11]' redeclared as different kind of symbol
int dig[11],dp[11][5000],pow[11];
^
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++/random:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_33812446_8414.cpp:3:
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_33812446_8414.cpp: In function 'int dfs(int, int, bool)':
0_0_33812446_8414.cpp:14:43: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
res += dfs(len - 1,num - i * pow[len - 1],i == end && flag);
^
0_0_33812446_8414.cpp: In function 'int work(int, int)':
0_0_33812446_8414.cpp:25:26: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
f += dig[i] * pow[i - 1];
^
0_0_33812446_8414.cpp: In function 'int main()':
0_0_33812446_8414.cpp:35:7: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
pow[0] = 1;
^
0_0_33812446_8414.cpp:36:37: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
for(int i = 1; i <= 10; i ++) pow[i] = 2 * pow[i - 1];
^
0_0_33812446_8414.cpp:36:54: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
for(int i = 1; i <= 10; i ++) pow[i] = 2 * pow[i - 1];
^
|