Print to screen command not working in c++

**Question: Why command of “cout” is not working? **

Repl link:

code snippet

You need a main function to start the program. C++ doesn’t run top down like javascript/python.

int main() {
     cout << "...";

the variable declarations can stay there but its better to have it all in the main function when they aren’t needed by other functions too.