0_0_20575797_10022.cpp:5: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_20575797_10022.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_20575797_10022.cpp: In function 'LL dfs(int, LL, int)':
0_0_20575797_10022.cpp:12:22: error: invalid operands of types 'int' and 'double(double, double)' to binary 'operator*'
if(len*pow[top][k]<sum) return 0;
^
0_0_20575797_10022.cpp:26:40: error: invalid operands of types 'int' and 'double(double, double)' to binary 'operator*'
ret+=dfs(len-i,sum-i*pow[top][k],top-1);
^
0_0_20575797_10022.cpp: In function 'LL solve(LL)':
0_0_20575797_10022.cpp:44:44: error: invalid operands of types 'LL {aka long long int}' and 'double(double, double)' to binary 'operator-'
ret+=sub_solve(i-1,sum-pow[j][k]);
^
0_0_20575797_10022.cpp:46:12: error: invalid operands of types 'LL {aka long long int}' and 'double(double, double)' to binary 'operator-'
sum-=pow[bit[i]][k];//这里表示sum取到了最大的值
^
0_0_20575797_10022.cpp:46:12: error: in evaluation of 'operator-=(LL {aka long long int}, double(double, double))'
0_0_20575797_10022.cpp: In function 'int main()':
0_0_20575797_10022.cpp:57:18: error: assignment of read-only location '*(pow + ((sizetype)i))'
pow[i][0]=1;
^
0_0_20575797_10022.cpp:57:18: error: cannot convert 'int' to 'double(double, double)' in assignment
0_0_20575797_10022.cpp:58:53: error: invalid operands of types 'double(double, double)' and 'int' to binary 'operator*'
for(int j=1;j<16;++j) pow[i][j]=pow[i][j-1]*i;
^
|