2021-07-21 19:19:34 +00:00
|
|
|
### Compilation failed:
|
|
|
|
|
2021-09-07 13:36:08 +00:00
|
|
|
error: 5: potential recursion (function call cycle) not allowed:
|
2021-07-21 19:19:34 +00:00
|
|
|
bool is_odd(int n)
|
|
|
|
bool is_even(int n)
|
2021-09-02 18:33:08 +00:00
|
|
|
bool is_odd(int n)
|
2022-04-06 22:24:52 +00:00
|
|
|
bool is_odd (int n) { return n == 0 ? false : is_even(n - 1); }
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-07-21 19:19:34 +00:00
|
|
|
1 error
|