Hi, it seems like you are getting an error because you are not using the correct namespace or scope for cout. cout is defined within the std namespace, so you need to either use std::cout or add a using namespace std; directive before your main function. For example:
#include
using namespace std;
int main()
{
cout << "Hello world";
return 0;
}
or
#include
int main()
{
std::cout << "Hello world";
return 0;
}
You can read more about namespaces and cout here:https://stackoverflow.com/questions/15359589/cout-is-not-a-member-of-std-cout-was-not-declared-in-this-scope[^], 'cout' was not declared in this scope [FIXED][^] or https://stackoverflow.com/questions/15185801/cout-was-not-declared-in-this-scope[^] Best regards, Mia from CodeIT