fork download
  1. #include <iostream>
  2. #include <cstdlib>
  3.  
  4. using namespace std;
  5. int n = 10;
  6.  
  7. int lalalala()
  8. {
  9. // ... code
  10.  
  11. if(1==1)
  12. {
  13. n = 15;
  14. }
  15. std::cout << n << std::endl;
  16. }
  17.  
  18.  
  19. int main() {
  20. lalalala();
  21. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
15