fork download
  1. #include <iostream>
  2. #include <cstdio>
  3.  
  4. namespace std {
  5. namespace ios_base2 {
  6. extern struct sync_with_stdio_t {
  7. void h(bool sync = true) {
  8. ios_base::sync_with_stdio(sync);
  9. }
  10. } sync_with_stdio;
  11. }
  12. }
  13.  
  14. int main() {
  15. std::ios_base2::sync_with_stdio.h(false);
  16. std::cout << "1";
  17. printf("2");
  18. std::cout << "3";
  19. puts("");
  20. return 0;
  21. }
Success #stdin #stdout 0s 5584KB
stdin
Standard input is empty
stdout
132