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_39753190_933.cpp: In function 'void solve()':
0_0_39753190_933.cpp:32:31: error: call of overloaded 'log2(__int128&)' is ambiguous
   32 |                 it t=ceil(log2(mid)),x=1,y=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)
      |   ^~~~
0_0_39753190_933.cpp:34:25: error: 'x' was not declared in this scope
   34 |                         x*=mid;
      |                         ^
0_0_39753190_933.cpp:37:25: error: 'y' was not declared in this scope
   37 |                         y*=t;
      |                         ^
0_0_39753190_933.cpp:39:20: error: 'x' was not declared in this scope
   39 |                 if(x*y<=k){
      |                    ^
0_0_39753190_933.cpp:39:22: error: 'y' was not declared in this scope
   39 |                 if(x*y<=k){
      |                      ^


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 09:23:27, Gzip enabled