feat: usage of ESM modules imports (instead of CommonJS) (#14)

This commit is contained in:
Divlo authored and GitHub committed 2022-04-23 18:41:14 +02:00
1 parent c502c17e7c
commit 104c61935a
44 files changed
+6623 -5171

No files matched your search

@@ -1,9 +1,10 @@
#include <cstdlib>
#include <iostream>
#include <string>
int main() {
for (std::string line; std::getline(std::cin, line);) {
std::cout << "Hello, " + line + "!" << std::endl;
}
return 0;
std::string line;
std::getline(std::cin, line);
std::cout << "Hello, " + line + "!\n";
return EXIT_SUCCESS;
}