0_0_18123566_16123.cpp:14:16: error: 'int fmax [10005]' redeclared as different kind of symbol
int N,fmax[maxn],smax[maxn],son[maxn],dp[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_18123566_16123.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_18123566_16123.cpp: In function 'void init()':
0_0_18123566_16123.cpp:20:15: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
fmax[i]=smax[i]=0;
^
0_0_18123566_16123.cpp: In function 'int dfs(int)':
0_0_18123566_16123.cpp:27:14: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(fmax[u]) return fmax[u];
^
0_0_18123566_16123.cpp:27:30: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(fmax[u]) return fmax[u];
^
0_0_18123566_16123.cpp:35:18: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(fmax[v]+w>a) { a=fmax[v]+w; b=v; }
^
0_0_18123566_16123.cpp:35:35: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(fmax[v]+w>a) { a=fmax[v]+w; b=v; }
^
0_0_18123566_16123.cpp:37:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
fmax[u]=a;
^
0_0_18123566_16123.cpp:45:18: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(fmax[v]+w>a) a=fmax[v]+w;
^
0_0_18123566_16123.cpp:45:33: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if(fmax[v]+w>a) a=fmax[v]+w;
^
0_0_18123566_16123.cpp:48:18: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
return fmax[u];
^
0_0_18123566_16123.cpp: In function 'void DP(int)':
0_0_18123566_16123.cpp:58:36: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
else dp[v]=max(dp[u],fmax[u])+w;
^
0_0_18123566_16123.cpp: In function 'int main()':
0_0_18123566_16123.cpp:73:15: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
fmax[1]=dfs(1);
^
0_0_18123566_16123.cpp:75:61: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
for(int i=1;i<=N;i++) printf("%d\n",max(dp[i],fmax[i]));
^
|