thank you brother, hurry upstairs to adopt to the upstairs
0 Answer
thank you brother, hurry upstairs to adopt to the upstairs
hope to adopt
hope to adopt
Part of this answer references GPT, GPT_Pro to solve the problem better.
This error occurs when compiling Fibonacci and causes the program to fail to compile. The possible cause is:
The correct code is as follows:
#include
int Fibonacci(int);
int main() {
int t;
scanf("%d", &t);
t = Fibonacci(t);
printf("%d", t);
return 0;
}
int Fibonacci(int n) {
int tt;
if (n == 0) tt = 0;
else if (n == 1) tt = 1;
else if (n >= 2) tt = Fibonacci(n-1) + Fibonacci(n-2);
return tt;
}
If the answer is helpful, please accept it.
这家伙很懒,什么都没留下...