Home STD Contest Notification Clarification Problems Ranklist Status Print Sign Out

View Compilation Error

1_868_3618_9010.cpp: In function 'int main()':
1_868_3618_9010.cpp:39:17: error: call of overloaded 'powl(int&, int&)' is ambiguous
    ll x=powl(n,n);
                 ^
1_868_3618_9010.cpp:39:17: note: candidates are:
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 1_868_3618_9010.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:740:30: note: long double powl(long double, long double)
   extern long double __cdecl powl (long double, long double);
                              ^
1_868_3618_9010.cpp:8:5: note: int powl(ll, ll)
 int powl(ll x,ll y){
     ^


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-02 02:15:53, Gzip enabled