Problem fibo
User neuneuneuneuneu
Submission Time 2024-05-26 01:57:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fibo.cpp: In function ‘int main()’:
fibo.cpp:28:88: error: invalid operands of types ‘__gnu_cxx::__promote_2<double, long long int, double, double>::__type’ {aka ‘double’} and ‘int’ to binary ‘operator%’
28 | temp = (pow((1 + sqrt(5)), i) - pow((1 - sqrt(5)), i)) / (pow(2, i) * sqrt(5)) % 998244353; //this is the equation way ah i found this in the comp. programmers textbook
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~
| | |
| | int
| __gnu_cxx::__promote_2<double, long long int, double, double>::__type {aka double}