What's wrong with my code

title
1
2
3
4
5
6
7
8
#include <iostream>
using namespace std

int main ()
{
	cout << "Olá Mundo!\n";
	return 0;
}


Thanks in advance.
you need a semicolon after using namespace std

so it should read using namespace std;
Thanks!
But I keep getting C1010 error.

1
2
3
4
5
6
7
8
#include <iostream>
using namespace std;

int main ()
{
	cout << "Olá Mundo!\n";
	return 0;
}
Last edited on
are you using visual studio? If so thats because it will be looking for a precompiled header. you can turn this off by the following:

Project properties
expand C++
Click precompiled headers
click drop down and select not using precompiled headers
hit apply and run your program.
Topic archived. No new replies allowed.