Two options:
cout << "Error:This is a really long "
<< "error message that exceeds "
<< "the maximum permitted length.\n";
Or:
cout << "Error:This is a really long "
"error message that exceeds "
"the maximum permitted length.\n";
The second one is more efficient.