Problem fibo
User xyz
Submission Time 2023-11-09 14:30:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fibo.cpp: In function ‘std::vector<int> fib()’:
fibo.cpp:13:5: error: call of overloaded ‘round(__float128)’ is ambiguous
13 | ));
| ^
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:528,
from /usr/include/c++/9/cmath:41,
from fibo.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:298:1: note: candidate: ‘double round(double)’
298 | __MATHCALLX (round,, (_Mdouble_ __x), (__const__));
| ^~~~~~~~~~~
In file included from fibo.cpp:1:
/usr/include/c++/9/cmath:1760:3: note: candidate: ‘constexpr long double std::round(long double)’
1760 | round(long double __x)
| ^~~~~
/usr/include/c++/9/cmath:1756:3: note: candidate: ‘constexpr float std::round(float)’
1756 | round(float __x)
| ^~~~~