chore(cpp): add frequently used headers and yes/no

Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
Matej Focko 2023-07-10 20:20:19 +02:00
parent 1464165a91
commit 2ef5f300ca
Signed by: mfocko
GPG key ID: 7C47D46246790496

View file

@ -1,4 +1,13 @@
#include <algorithm>
#include <cassert>
#include <cctype>
#include <cstdint>
#include <functional>
#include <iostream> #include <iostream>
#include <optional>
#include <sstream>
#include <string>
#include <vector>
namespace helpers { namespace helpers {
@ -16,6 +25,9 @@ inline void answer(const T &ans) {
cout << ans << "\n"; cout << ans << "\n";
} }
inline void yes() { cout << "YES\n"; }
inline void no() { cout << "NO\n"; }
} // namespace helpers } // namespace helpers
namespace { namespace {