| Problem | 1609 |
|---|---|
| User | idkhowtocode |
| Submission Time | 2026-03-27 20:09:11 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
1609.cpp: In function ‘int main()’:
1609.cpp:9:57: error: no matching function for call to ‘std::chrono::duration<long int>::duration(double)’
9 | std::this_thread::sleep_for(std::chrono::seconds(1.9));
| ^
In file included from /usr/include/c++/9/thread:38,
from 1609.cpp:2:
/usr/include/c++/9/chrono:338:14: note: candidate: ‘template<class _Rep2, class _Period2, class> constexpr std::chrono::duration<_Rep, _Period>::duration(const std::chrono::duration<_Rep, _Period>&)’
338 | constexpr duration(const duration<_Rep2, _Period2>& __d)
| ^~~~~~~~
/usr/include/c++/9/chrono:338:14: note: template argument deduction/substitution failed:
1609.cpp:9:57: note: mismatched types ‘const std::chrono::duration<_Rep1, _Period1>’ and ‘double’
9 | std::this_thread::sleep_for(std::chrono::seconds(1.9));
|