I have just started the c++ course on Codecademy and I have ran into an error message on the “Block Letters” project. I am sure the error is caused by a simple mistake I have made, but with no experience in c++, I can’t seem to resolve it. I am trying to compile and execute my code for step 5 of the project but keep getting the error shown below.
Here is my code:
#include
int main() {
sdt::cout << “N N \n”;
std::cout << “NN N \n”;
std::cout << “N N N \n”;
std::cout << “N NN \n”;
std::cout << “N N \n”;
std::cout << “N N \n”;
std::cout << “N N \n”;
}
The error reads as this:
initials.cpp: In function ‘int main()’:
initials.cpp:6:3: error: ‘sdt’ has not been declared
sdt::cout << “N N \n”;
^~~
Hehe they did but the forums markup eats things that look like tags . If you want to view code that looks mullered by the forums use the wee ... triple dot near the reply button and the </> symbol to view the raw text that was posted.