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_19938733_997.cpp:11:33: error: 'int round [100011]' redeclared as different kind of symbol
 int z[N],used[N],down[N],round[N],sum[N],Cnt[N];
                                 ^
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_19938733_997.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:874:25: note: previous declaration 'double round(double)'
   extern double __cdecl round (double);
                         ^
0_0_19938733_997.cpp: In function 'void treedp(int, int)':
0_0_19938733_997.cpp:39:23: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   if (v==last||round[v]) continue;
                       ^
0_0_19938733_997.cpp: In function 'int find(int, int, int)':
0_0_19938733_997.cpp:48:40: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   int& v=e[i].to;if (v==(last)||round[v]) continue;
                                        ^
0_0_19938733_997.cpp: In function 'void solve()':
0_0_19938733_997.cpp:79:34: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
  for (int i=op;i<=ed;i++) round[i]=1;
                                  ^
0_0_19938733_997.cpp: In function 'void clear()':
0_0_19938733_997.cpp:92:41: error: ISO C++ forbids applying 'sizeof' to an expression of function type [-fpermissive]
 void clear(){memset(round,0,sizeof(round));memset(used,0,sizeof(used));memset(head,0,sizeof(head));}
                                         ^
0_0_19938733_997.cpp:92:42: error: cannot resolve overloaded function 'round' based on conversion to type 'void*'
 void clear(){memset(round,0,sizeof(round));memset(used,0,sizeof(used));memset(head,0,sizeof(head));}
                                          ^


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-12-05 06:52:10, Gzip enabled