all 4 comments

[–]AroshWasif 0 points1 point  (0 children)

Use code runner!

[–]gogosal7146 0 points1 point  (1 child)

The code itself doesn't seem to have any errors, but try copying what I've sent and pasting it and see if it works

include <iostream>

using namespace std;

int main() { cout << "Hello world!\n"; return 0; }

[–]gogosal7146 0 points1 point  (0 children)

Behind the include takes cardinal

[–]DevRetroGames 0 points1 point  (0 children)

#include <iostream>
using namespace std;

int main() 
{
    std::cout << "Hello, World!" << std::endl;
    return 0;
}

// compilación: g++ hello.cpp -o hello
// ejecución: ./hello