From 34ab2d8a32e3186c60cf0aac96a3255b8e220efd Mon Sep 17 00:00:00 2001 From: Dipesh Kafle <38459660+dipeshkaphle@users.noreply.github.com> Date: Tue, 1 Mar 2022 12:16:59 +0545 Subject: [PATCH] fix: buffered output possibility (#35) --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cpp b/src/main.cpp index d078689..e1b6e12 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -8,6 +8,7 @@ #include "utils/game_map.hpp" int main() { + std::cout.setf(std::ios::unitbuf); unsigned turns, coins; std::cin >> turns >> coins;