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_39451894_24179.cpp: In function 'void computeFactorials(std::vector<int>&, std::vector<int>&, int)':
0_0_39451894_24179.cpp:32:21: error: no matching function for call to 'pow(__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&, int, const int&)'
   32 |     invFact[n] = pow(fact[n], MOD - 2, MOD);
      |                  ~~~^~~~~~~~~~~~~~~~~~~~~~~
In file included from 0_0_39451894_24179.cpp:3:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:417:5: note: candidate: 'template<class _Tp, class _Up> constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type std::pow(_Tp, _Up)'
  417 |     pow(_Tp __x, _Up __y)
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:417:5: note:   template argument deduction/substitution failed:
0_0_39451894_24179.cpp:32:21: note:   candidate expects 2 arguments, 3 provided
   32 |     invFact[n] = pow(fact[n], MOD - 2, MOD);
      |                  ~~~^~~~~~~~~~~~~~~~~~~~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:47:
gcc-13.1.0/x86_64-w64-mingw32/include/math.h:191:18: note: candidate: 'double pow(double, double)'
  191 |   double __cdecl pow(double _X,double _Y);
      |                  ^~~
gcc-13.1.0/x86_64-w64-mingw32/include/math.h:191:18: note:   candidate expects 2 arguments, 3 provided
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:394:3: note: candidate: 'constexpr long double std::pow(long double, long double)'
  394 |   pow(long double __x, long double __y)
      |   ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:394:3: note:   candidate expects 2 arguments, 3 provided
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:390:3: note: candidate: 'constexpr float std::pow(float, float)'
  390 |   pow(float __x, float __y)
      |   ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:390:3: note:   candidate expects 2 arguments, 3 provided


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-25 11:46:22, Gzip enabled