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


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-06-26 12:51:12, Gzip enabled