Problem funnysequence
User PrunJuice
Submission Time 2025-05-17 21:27:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

funnysequence.cpp: In function ‘void init()’:
funnysequence.cpp:10:72: error: no matching function for call to ‘pow(__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type&)’
10 | FunnySequence[i] = (i * i * i) + floor(pow(FunnySequence[i - 1]), 0.5) + floor(pow(FunnySequence[i - 2]), 0.5);
| ^
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/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:33,
from funnysequence.cpp:2:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:140:1: note: candidate: ‘double pow(double, double)’
140 | __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y)