| Problem | lcm |
|---|---|
| User | Hatrix |
| Submission Time | 2026-03-09 20:42:58 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lcm.cpp: In function ‘int main()’:
lcm.cpp:7:15: error: no matching function for call to ‘lcm(long long int&)’
7 | cout << lcm(n);
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:84,
from lcm.cpp:1:
/usr/include/c++/9/numeric:146:5: note: candidate: ‘template<class _Mn, class _Nn> constexpr std::common_type_t<_Mn, _Nn> std::lcm(_Mn, _Nn)’
146 | lcm(_Mn __m, _Nn __n) noexcept
| ^~~
/usr/include/c++/9/numeric:146:5: note: template argument deduction/substitution failed:
lcm.cpp:7:15: note: candidate expects 2 arguments, 1 provided
7 | cout << lcm(n);
| ^