Problem | fibo |
---|---|
User | superG |
Submission Time | 2025-03-05 21:05:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fibo.cpp: In function ‘long long int fibbo(long long int&)’:
fibo.cpp:13:17: error: cannot bind non-const lvalue reference of type ‘long long int&’ to an rvalue of type ‘long long int’
13 | return fibbo(n-1) + fibbo(n-2);
| ~^~
fibo.cpp:6:16: note: initializing argument 1 of ‘long long int fibbo(long long int&)’
6 | int fibbo(int &n) {
| ^
fibo.cpp:13:30: error: cannot bind non-const lvalue reference of type ‘long long int&’ to an rvalue of type ‘long long int’
13 | return fibbo(n-1) + fibbo(n-2);
| ~^~
fibo.cpp:6:16: note: initializing argument 1 of ‘long long int fibbo(long long int&)’
6 | int fibbo(int &n) {
| ^