0_0_13992664_28786.cpp:32:15: error: 'int floor [55]' redeclared as different kind of symbol
int floor[MAXN];
^
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_13992664_28786.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:154:18: note: previous declaration 'double floor(double)'
double __cdecl floor(double _X);
^
0_0_13992664_28786.cpp: In function 'int bfs()':
0_0_13992664_28786.cpp:35:29: error: ISO C++ forbids applying 'sizeof' to an expression of function type [-fpermissive]
memset(floor,0,sizeof(floor));
^
0_0_13992664_28786.cpp:35:30: error: cannot resolve overloaded function 'floor' based on conversion to type 'void*'
memset(floor,0,sizeof(floor));
^
0_0_13992664_28786.cpp:36:9: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
floor[S] = 1;
^
0_0_13992664_28786.cpp:44:28: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(e.c>0 && floor[ e.to ]==0){
^
0_0_13992664_28786.cpp:45:17: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
floor[ e.to ] = floor[ p ] + 1;
^
0_0_13992664_28786.cpp:45:30: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
floor[ e.to ] = floor[ p ] + 1;
^
0_0_13992664_28786.cpp:50:16: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
return floor[T];
^
0_0_13992664_28786.cpp: In function 'int dfs(int, int)':
0_0_13992664_28786.cpp:60:10: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
floor[v] < floor[e.to] &&
^
0_0_13992664_28786.cpp:60:24: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
floor[v] < floor[e.to] &&
^
|