| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 165169 | 成书骏 | 向下取整 | C++ | Compile Error | 0 MS | 0 KB | 290 | 2026-11-12 19:56:03 |
#include<iostream> #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a,b; cin>>a>>b; cout<<floor(a,b); }
Main.cc: In function 'int main()':
Main.cc:11:20: error: no matching function for call to 'floor(int&, int&)'
cout< constexpr typename __gnu_cxx::__enable_if::__value, double>::__type std::floor(_Tp)
floor(_Tp __x)
^
/usr/include/c++/5/cmath:291:5: note: template argument deduction/substitution failed:
Main.cc:11:20: note: candidate expects 1 argument, 2 provided
cout<