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_39752795_18268.cpp: In function 'bool check(__int128)':
0_0_39752795_18268.cpp:6:17: error: call of overloaded 'log2(__int128)' is ambiguous
    6 |     ll temp=log2(n-1)+1;
      |             ~~~~^~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:47,
                 from .\stdc++.h:114:
gcc-13.1.0/x86_64-w64-mingw32/include/math.h:768:25: note: candidate: 'double log2(double)'
  768 |   extern double __cdecl log2 (double);
      |                         ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:2390:3: note: candidate: 'constexpr long double std::log2(long double)'
 2390 |   log2(long double __x)
      |   ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:2386:3: note: candidate: 'constexpr float std::log2(float)'
 2386 |   log2(float __x)
      |   ^~~~


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-26 22:09:05, Gzip enabled