| 13 | using namespace std; |
| 14 | |
| 15 | void check_platform() { |
| 16 | |
| 17 | #if defined(_WIN32) || defined(_WIN64) |
| 18 | const char* os = "windows"; |
| 19 | #elif defined(__linux__) |
| 20 | const char* os = "linux"; |
| 21 | #elif defined(__APPLE__) |
| 22 | const char *os = "osx"; |
| 23 | #endif |
| 24 | #if defined(_MSC_VER) |
| 25 | const char* compiler = "msvc"; |
| 26 | #elif defined(__clang__) |
| 27 | const char* compiler = "clang"; |
| 28 | #elif defined(__GNUC__) |
| 29 | const char *compiler = "gcc"; |
| 30 | |
| 31 | #endif |
| 32 | std::cout << os << "(" << compiler << ")" << std::endl; |
| 33 | } |
| 34 | |
| 35 | std::vector<int> parseNumbersFromString(const std::string &input) { |
| 36 | std::vector<int> numbers; |