fork download
  1. #include <iostream>
  2.  
  3. void solve()
  4. {
  5. static int i = 0;
  6.  
  7. i = i + 1;
  8. if ( i==10)
  9. return;
  10.  
  11. solve();
  12. }
  13.  
  14. int main()
  15. {
  16. solve() ;
  17. std::cout << "solve returned" ;
  18. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
solve returned