0_0_35450908_18198.cpp:7:72: error: 'int cos [1010]' redeclared as different kind of symbol
int t,n,cas,tot,scccnt,val[maxn],dfn[maxn],low[maxn],scc[maxn],cos[maxn],deg[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_35450908_18198.cpp:1:
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_35450908_18198.cpp: In function 'void tarjan(int)':
0_0_35450908_18198.cpp:29:13: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
cos[scccnt] = val[now];
^
0_0_35450908_18198.cpp:32:14: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
cos[scccnt] = min(cos[scccnt],val[s.top()]);
^
0_0_35450908_18198.cpp:32:32: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
cos[scccnt] = min(cos[scccnt],val[s.top()]);
^
0_0_35450908_18198.cpp: In function 'int main()':
0_0_35450908_18198.cpp:43:9: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
cos[i] = val[i] = dfn[i] = low[i] = scc[i] = deg[i] = tot = 0;
^
0_0_35450908_18198.cpp:58:60: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
for (int i = 1;i <= scccnt;i++) if (!deg[i]) ans += cos[i];
^
|