add function for declaring an interactive tasks

This commit is contained in:
Johannes Kapfhammer 2021-05-01 15:37:18 +02:00
parent c0d288e9e8
commit b3250096e1
Signed by: johannesk
GPG Key ID: 565B82ED229ACA80
1 changed files with 6 additions and 0 deletions

View File

@ -74,11 +74,17 @@ soi_initializer soi_initializer_{true};
soi_initializer soi_initializer_{false}; soi_initializer soi_initializer_{false};
#endif #endif
void interactive_task() {
std::cin.tie(&std::cout);
}
} // end namespace soi } // end namespace soi
#include "bits/soi-io.hpp" #include "bits/soi-io.hpp"
#include "bits/soi-redirect.hpp" #include "bits/soi-redirect.hpp"
#include "bits/soi-deprecate.hpp" #include "bits/soi-deprecate.hpp"
using soi::interactive_task;
#define int int64_t #define int int64_t
using namespace std; using namespace std;