QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#779253#9622. 有限小数ucup-team1057#Compile Error//C++171.9kb2024-11-24 18:04:272024-11-24 18:04:28

詳細信息

answer.code: In function ‘void solve()’:
answer.code:53:25: error: no matching function for call to ‘ceil(long long int&, long long int&)’
   53 |             int t = ceil(y, P);
      |                     ~~~~^~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:114,
                 from answer.code:1:
/usr/include/c++/13/cmath:170:5: note: candidate: ‘template<class _Tp> constexpr typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::ceil(_Tp)’
  170 |     ceil(_Tp __x)
      |     ^~~~
/usr/include/c++/13/cmath:170:5: note:   template argument deduction/substitution failed:
answer.code:53:25: note:   candidate expects 1 argument, 2 provided
   53 |             int t = ceil(y, P);
      |                     ~~~~^~~~~~
In file included from /usr/include/features.h:461,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h:679,
                 from /usr/include/c++/13/cassert:43,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:33:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:159:1: note: candidate: ‘double ceil(double)’
  159 | __MATHCALLX (ceil,, (_Mdouble_ __x), (__const__));
      | ^~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:159:1: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/13/cmath:162:3: note: candidate: ‘constexpr long double std::ceil(long double)’
  162 |   ceil(long double __x)
      |   ^~~~
/usr/include/c++/13/cmath:162:3: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/13/cmath:158:3: note: candidate: ‘constexpr float std::ceil(float)’
  158 |   ceil(float __x)
      |   ^~~~
/usr/include/c++/13/cmath:158:3: note:   candidate expects 1 argument, 2 provided