fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. #define ONE 3
  6. #pragma push_macro("ONE")
  7. #define ONE 2
  8. #pragma push_macro("ONE")
  9. #define ONE 1
  10. #pragma push_macro("ONE")
  11.  
  12. int main() {
  13. cout << ONE;
  14. #pragma pop_macro("ONE")
  15. cout << ONE;
  16. #pragma pop_macro("ONE")
  17. cout << ONE;
  18. #pragma pop_macro("ONE")
  19. cout << ONE;
  20. return 0;
  21. }
Success #stdin #stdout 0s 2852KB
stdin
Standard input is empty
stdout
1123