2021-07-21 19:19:34 +00:00
|
|
|
### Compilation failed:
|
|
|
|
|
2021-09-07 13:36:08 +00:00
|
|
|
error: 4: potential recursion (function call cycle) not allowed:
|
2021-07-21 19:19:34 +00:00
|
|
|
int fibonacci(int n)
|
|
|
|
int fibonacci(int n)
|
2022-04-06 22:24:52 +00:00
|
|
|
int fibonacci(int n) { return n <= 1 ? n : fibonacci(n - 1) + fibonacci(n - 2); }
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-07-21 19:19:34 +00:00
|
|
|
1 error
|