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_30885525_17866.cpp:530:17: error: 'int log2 [8388608]' redeclared as different kind of symbol
 int log2[1 << 23];
                 ^
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++/x86_64-w64-mingw32/bits/stdc++.h:41,
                 from 0_0_30885525_17866.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:638:25: note: previous declaration 'double log2(double)'
   extern double __cdecl log2 (double);
                         ^
0_0_30885525_17866.cpp: In function 'void initialize()':
0_0_30885525_17866.cpp:563:14: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   log2[1 << i] = i;
              ^
0_0_30885525_17866.cpp:567:38: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   pwr2[i] = pwr2[i - 1] + log2[i & -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-11-23 00:29:10, Gzip enabled