Compile and Run C++ in browser


Program arguments:

Compilation command:

<...>

#include <iostream> #include <string> #include <array> #include <algorithm> #include <iterator> int main(int /*argc*/, const char* argv[]) { std::array v = { // C++17 deduction guides at work :) "Hello ", argv[1] }; std::copy( std::begin(v), std::end(v), std::ostream_iterator<const char*>(std::cerr, " ") ); }