0_0_26332690_23110.cpp:20:42: error: 'int cos [160410]' redeclared as different kind of symbol
int tot,go[2*maxe],val[2*maxe],cos[2*maxe],nxt[2*maxe],f1[maxp];
^
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_26332690_23110.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:139:18: note: previous declaration 'double cos(double)'
double __cdecl cos(double _X);
^
0_0_26332690_23110.cpp: In function 'void ins(int, int, int, int)':
0_0_26332690_23110.cpp:25:9: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
cos[tot]=c;
^
0_0_26332690_23110.cpp: In function 'void McMf()':
0_0_26332690_23110.cpp:41:66: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
for(int p=f1[d[i]]; p; p=nxt[p]) if (val[p] && dis[d[i]]+cos[p]<dis[go[p]])
^
0_0_26332690_23110.cpp:43:31: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
dis[go[p]]=dis[d[i]]+cos[p];
^
0_0_26332690_23110.cpp:58:14: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
ans+=cos[p];
^
|