0_0_23956796_18257.cpp:7:10: error: 'int pow [18]' redeclared as different kind of symbol
int pow[M],tem[N],ke1[N],ke2[N],fir[N],nex[N];
^
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_23956796_18257.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_23956796_18257.cpp: In function 'void RMQ(int*)':
0_0_23956796_18257.cpp:51:19: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
for(int j=1;pow[j]<=n;j++)
^
0_0_23956796_18257.cpp:52:22: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
for(int i=1;i+pow[j]<=n+1;i++)
^
0_0_23956796_18257.cpp:53:36: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
f[i][j]=min(f[i][j-1],f[i+pow[j-1]][j-1]);
^
0_0_23956796_18257.cpp: In function 'int LCP(int, int)':
0_0_23956796_18257.cpp:58:33: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
for(int k=0;k<M;k++) if(pow[k+1]>j-i)
^
0_0_23956796_18257.cpp:59:33: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
return min(f[i+1][k],f[j-pow[k]+1][k]);
^
0_0_23956796_18257.cpp: In function 'int main()':
0_0_23956796_18257.cpp:68:7: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
pow[0]=1;
^
0_0_23956796_18257.cpp:69:28: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
for(int i=1;i<M;i++) pow[i]=pow[i-1]<<1;
^
0_0_23956796_18257.cpp:69:37: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
for(int i=1;i<M;i++) pow[i]=pow[i-1]<<1;
^
|