fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3. int func(bool s);
  4. int main() {
  5. int n=func(true);
  6. int b=func(false);
  7. cout<<n<<" "<<b<<endl;
  8. return 0;
  9. }
  10. int func(bool s)
  11. {
  12. int y=0;
  13. for(int i=0;i<1;i++,y++)
  14. for(int j=0;j<1;j++,y++)
  15. for(int k=0;k<1;k++,y++)
  16. for(int t=0;t<1;t++,y++)
  17. {
  18. if(s)
  19. for(int u=0;u<1;u++)
  20. y++;
  21. }
  22.  
  23. return y;
  24. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
5 4