mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2025-05-18 12:02:53 +02:00
feat: usage of ESM modules imports (instead of CommonJS) (#14)
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user