0_0_20023278_9311.cpp:9:54: error: 'int pow [4]' redeclared as different kind of symbol
int n,k,a[N],b[N],f[N][K],g[2][K],lengthProduct,pow[4];
^
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_20023278_9311.cpp:2:
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_20023278_9311.cpp: In function 'int length(int)':
0_0_20023278_9311.cpp:14:21: error: invalid conversion from 'double (*)(double, double)' to 'int' [-fpermissive]
return pow[0];
^
0_0_20023278_9311.cpp:16:21: error: invalid conversion from 'double (*)(double, double)' to 'int' [-fpermissive]
return pow[1];
^
0_0_20023278_9311.cpp:18:21: error: invalid conversion from 'double (*)(double, double)' to 'int' [-fpermissive]
return pow[2];
^
0_0_20023278_9311.cpp:20:21: error: invalid conversion from 'double (*)(double, double)' to 'int' [-fpermissive]
return pow[3];
^
0_0_20023278_9311.cpp: In function 'int main()':
0_0_20023278_9311.cpp:27:19: error: assignment of read-only location '*(pow + ((sizetype)i))'
pow[i]=v%k;
^
0_0_20023278_9311.cpp:27:19: error: cannot convert 'int' to 'double(double, double)' in assignment
|