From b3250096e1d1c0d1b04f45b17faf4c3cb3924291 Mon Sep 17 00:00:00 2001 From: Johannes Kapfhammer Date: Sat, 1 May 2021 15:37:18 +0200 Subject: [PATCH] add function for declaring an interactive tasks --- include/soi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/soi b/include/soi index e1265bd..2589d6a 100644 --- a/include/soi +++ b/include/soi @@ -74,11 +74,17 @@ soi_initializer soi_initializer_{true}; soi_initializer soi_initializer_{false}; #endif +void interactive_task() { + std::cin.tie(&std::cout); +} + } // end namespace soi #include "bits/soi-io.hpp" #include "bits/soi-redirect.hpp" #include "bits/soi-deprecate.hpp" +using soi::interactive_task; + #define int int64_t using namespace std;