fork download
  1. #include <stdio.h>
  2. int hoge(int n){
  3. if( n < 0 ){
  4. return n;
  5. } else {
  6. return hoge(n-1)+hoge(n-2);
  7. }
  8. }
  9. int main(){
  10. printf("%d", hoge(0));
  11. }
Success #stdin #stdout 0.01s 5324KB
stdin
Standard input is empty
stdout
-3