F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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];
                                                            ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-07-03 14:08:10, Gzip enabled