fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3. int drawBorder();
  4. void drawMap();
  5. int main()
  6. {
  7. drawBorder();
  8. drawMap();
  9. }
  10. int drawBorder()
  11. {
  12. cout << "Border ";
  13. cout.flush();
  14. return 0;
  15. }
  16. void drawMap()
  17. {
  18. // выведется на второй строке
  19. cout << "Map";
  20. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
Border Map