Also, sidetracking of of our sidetrack my code won't run :(
1 2 3 4 5 6 7 8 9 10 11
|
include <iostream>
using namespace std;
int main(){
cout << "Hello, World!" << endl;
return 0;
}
|
it says meh errors are:
me@ubuntu:~$ g++ hello_world.cpp -o test
hello_world.cpp:1: error: expected constructor, destructor, or type conversion before ‘<’ token
hello_world.cpp: In function ‘int main()’:
hello_world.cpp:7: error: ‘cout’ is not a member of ‘std’
hello_world.cpp:7: error: ‘endl’ was not declared in this scope
jacob@ubuntu:~$ g++ hello_world.cpp -o test
hello_world.cpp:1: error: expected constructor, destructor, or type conversion before ‘<’ token
hello_world.cpp: In function ‘int main()’:
hello_world.cpp:8: error: ‘cout’ is not a member of ‘std’
hello_world.cpp:8: error: ‘endl’ was not declared in this scope