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_36527829_27892.cpp: In function 'void build(long long int, long long int, long long int)':
0_0_36527829_27892.cpp:59:23: error: call of overloaded '__lg(ll&)' is ambiguous
   ll t1 =1<<(__lg(a[l]));
                       ^
0_0_36527829_27892.cpp:59:23: note: candidates are:
0_0_36527829_27892.cpp:47:5: note: long long int __lg(long long int)
 int __lg(int x){
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_36527829_27892.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:1026:3: note: constexpr long long unsigned int std::__lg(long long unsigned int)
   __lg(unsigned long long __n)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:1022:3: note: constexpr long long int std::__lg(long long int)
   __lg(long long __n)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:1018:3: note: constexpr long unsigned int std::__lg(long unsigned int)
   __lg(unsigned long __n)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:1014:3: note: constexpr long int std::__lg(long int)
   __lg(long __n)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:1010:3: note: constexpr unsigned int std::__lg(unsigned int)
   __lg(unsigned __n)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:1006:3: note: constexpr int std::__lg(int)
   __lg(int __n)
   ^


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-09-29 17:21:46, Gzip enabled