fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void foo(int x, int y) {
  5. if(x == 1)
  6. return;
  7. cout<<"Yes!";
  8. }
  9.  
  10.  
  11. int main() {
  12. foo(1,2);
  13. foo(2,3);
  14. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
Yes!