fork download
#include 
#include 
#include 

struct NoDefCtor
{
    std::string s;
    NoDefCtor(const char *str) : s(str)
    {
    }
};

int main()
{
    std::vector v;
    v.push_back("Hello, ");
    v.push_back("World!");
    for(std::size_t i = 0; i < v.size(); ++i)
    {
        std::cout << v[i].s << std::flush;
    }
}
Success #stdin #stdout 0s 2988KB
stdin
Standard input is empty
stdout
Hello, World!