0_0_38132755_207.cpp:16:22: error: 'int fmax [355][355][20]' redeclared as different kind of symbol
int fmax[355][355][20],Log2[1005],fd[355][355][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++/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_38132755_207.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:963:25: note: previous declaration 'double fmax(double, double)'
extern double __cdecl fmax (double, double);
^
0_0_38132755_207.cpp: In function 'int rmq1(int, int, int)':
0_0_38132755_207.cpp:19:21: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
return max(fmax[row][L][t],fmax[row][R-(1<<t)+1][t]);
^
0_0_38132755_207.cpp:19:37: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
return max(fmax[row][L][t],fmax[row][R-(1<<t)+1][t]);
^
0_0_38132755_207.cpp: In function 'int main()':
0_0_38132755_207.cpp:31:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
fmax[i][j][0] = fd[j][i][0] = read();
^
0_0_38132755_207.cpp:39:12: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
fmax[i][j][k] = max(fmax[i][j][k-1],fmax[i][j+(1<<(k-1))][k-1]);
^
0_0_38132755_207.cpp:39:32: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
fmax[i][j][k] = max(fmax[i][j][k-1],fmax[i][j+(1<<(k-1))][k-1]);
^
0_0_38132755_207.cpp:39:48: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
fmax[i][j][k] = max(fmax[i][j][k-1],fmax[i][j+(1<<(k-1))][k-1]);
^
0_0_38132755_207.cpp:58:31: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
maxi = max(maxi,max(fmax[i][L][t],fmax[i][R-(1<<t)+1][t]));
^
0_0_38132755_207.cpp:58:45: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
maxi = max(maxi,max(fmax[i][L][t],fmax[i][R-(1<<t)+1][t]));
^
0_0_38132755_207.cpp:63:21: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(maxi == fmax[x][y][0])printf("yes\n");
^
0_0_38132755_207.cpp:64:26: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
else if(maxi == fmax[x][b][0])printf("yes\n");
^
0_0_38132755_207.cpp:65:26: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
else if(maxi == fmax[a][y][0])printf("yes\n");
^
0_0_38132755_207.cpp:66:26: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
else if(maxi == fmax[a][b][0])printf("yes\n");
^
|