fork download
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. int g = 0x70;
  5. int foo()
  6. {
  7. return g << 1;
  8. }
  9. int bar()
  10. {
  11. int g = 70;
  12. return g << 2;
  13. }
  14. int main(int, char*[])
  15. {
  16. std::cout << std::hex << (foo() | bar()) << std::endl;
  17. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
1f8