실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘ll nCr_mod_pe(ll, ll, ll, ll)’: Main.cpp:73:26: error: no matching function for call to ‘pow(ll&, ll&, ll&)’ 73 | result = result * pow(p, t, pe) % pe; | ~~~^~~~~~~~~~ In file included from Main.cpp:4: /usr/include/c++/11/cmath:415:5: note: candidate: ‘template<class _Tp, class _Up> constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type std::pow(_Tp, _Up)’ 415 | pow(_Tp __x, _Up __y) | ^~~ /usr/include/c++/11/cmath:415:5: note: template argument deduction/substitution failed: Main.cpp:73:26: note: candidate expects 2 arguments, 3 provided 73 | result = result * pow(p, t, pe) % pe; | ~~~^~~~~~~~~~ In file included from /usr/include/features.h:486, from /usr/include/aarch64-linux-gnu/c++/11/bits/os_defines.h:39, from /usr/include/aarch64-linux-gnu/c++/11/bits/c++config.h:586, from /usr/include/c++/11/iostream:38, from Main.cpp:1: /usr/include/aarch64-linux-gnu/bits/mathcalls.h:140:1: note: candidate: ‘double pow(double, double)’ 140 | __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y)); | ^~~~~~~~~~~~~~ /usr/include/aarch64-linux-gnu/bits/mathcalls.h:140:1: note: candidate expects 2 arguments, 3 provided In file included from Main.cpp:4: /usr/include/c++/11/cmath:392:3: note: candidate: ‘constexpr long double std::pow(long double, long double)’ 392 | pow(long double __x, long double __y) | ^~~ /usr/include/c++/11/cmath:392:3: note: candidate expects 2 arguments, 3 provided /usr/include/c++/11/cmath:388:3: note: candidate: ‘constexpr float std::pow(float, float)’ 388 | pow(float __x, float __y) | ^~~ /usr/include/c++/11/cmath:388:3: note: candidate expects 2 arguments, 3 provided
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.