QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#542706#8932. Bingoucup-team639#Compile Error//C++173.5kb2024-09-01 04:22:542024-09-01 04:22:54

詳細信息

answer.code: In function ‘void solve()’:
answer.code:122:18: error: no matching function for call to ‘ckmin(int64_t&, long long int)’
  122 |             ckmin(ans, 1ll);
      |             ~~~~~^~~~~~~~~~
answer.code:22:24: note: candidate: ‘template<class T> bool ckmin(T&, const T&)’
   22 | template<class T> bool ckmin(T& a, const T& b) { return a > b ? a=b, true : false; }
      |                        ^~~~~
answer.code:22:24: note:   template argument deduction/substitution failed:
answer.code:122:18: note:   deduced conflicting types for parameter ‘const T’ (‘long int’ and ‘long long int’)
  122 |             ckmin(ans, 1ll);
      |             ~~~~~^~~~~~~~~~