| Problem | cuberoot |
|---|---|
| User | yanwen |
| Submission Time | 2025-04-23 16:32:10 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
cuberoot.cpp: In function ‘int main()’:
cuberoot.cpp:12:31: error: no matching function for call to ‘cbrt(__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type&)’
12 | cout << cbrt(number[i]) << endl;
| ^
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/iostream:38,
from cuberoot.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:152:1: note: candidate: ‘double cbrt(double)’
152 | __MATHCALL (cbrt,, (_Mdouble_ __x));
| ^~~~~~~~~~
In file included from /usr/include/c++/9/cmath:45,
from cuberoot.cpp:3:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:152: