5 lines
158 B
Plaintext
5 lines
158 B
Plaintext
|
// Expect 1 error
|
||
|
|
||
|
// Simple recursion is not allowed, even with branching:
|
||
|
int fibonacci(int n) { return n <= 1 ? n : fibonacci(n - 1) + fibonacci(n - 2); }
|