fork download
  1. #include <iostream>
  2. #include <stdio.h>
  3. using namespace std;
  4.  
  5. int e = 100;
  6. int x = 1;
  7.  
  8. void alpha(){
  9. printf("%d\n", x);
  10. {
  11. int x = 11;
  12. printf("%d\n", e);
  13. }
  14. x = 79;
  15. e = 19;
  16. }
  17.  
  18. void beta(){
  19. int x = 0;
  20. {
  21. int e = 20;
  22. alpha();
  23. }
  24. printf("%d\n", x);
  25. alpha();
  26. }
  27. int main() {
  28. // your code goes here
  29. alpha();
  30. beta();
  31. return 0;
  32. }
Success #stdin #stdout 0s 5296KB
stdin
Standard input is empty
stdout
1
100
79
19
0
79
19