I can't find my mistakes in this lesson, but I am not getting the answer

#include
#include <stdlib.h>
#include

int Main() {

srand (time(NULL));
int fortune = rand() % 10;

if (fortune == 0) {

std::cout << "Flattery will go far tonight.\n";

} else if (fortune == 1) {

std::cout << "Don't behave with cold manners.\n";

} else if (fortune == 2) {

std::cout << "May you someday be carbon neutral\n";

} else if (fortune == 3) {

std::cout << "You have rice in your teeth.\n";

} else if (fortune == 4) {

std::cout << "A conclusion is simply the place where you got tired of thinking.\n";

} else if (fortune ==5) {

std::cout << "No snowflake feels responsible in an avalanche.\n";

} else if (fortune == 6) {

std::cout << "He who laughs last is laughing at you.\n";

} else if (fortune == 7) {

std::cout << "If you look back, you'll soon be going that way.\n";

} else if (fortune == 8) {

std::cout << "You will die alone and poorly dressed.\n";

} else if (fortune == 9) {

std::cout << "The fortune you seek is in another cookie.\n";

}

}

C++ is case sensitive. Notice anything wrong in the following line?

int Main() {

no, I am not getting can you tell me which error?

// You wrote:
int Main() {

// It should be:
int main() {

I’m getting the same problem, except I already changed the “int main() {” here’s my code:
#include
#include <stdlib.h>
#include

int main() {

srand (time(NULL));
int fortune = rand() % 10;

if (fortune == 0) {

std::cout << "Flattery will go far tonight.\n";

} else if (fortune == 1) {

std::cout << "Don't behave with cold manners.\n";

} else if (fortune == 2) {

std::cout << "May you someday be carbon neutral\n";

} else if (fortune == 3) {

std::cout << "You have rice in your teeth.\n";

} else if (fortune == 4) {

std::cout << "A conclusion is simply the place where you got tired of thinking.\n";

} else if (fortune == 5) {

std::cout << "No snowflake feels responsible in an avalanche.\n";

} else if (fortune == 6) {

std::cout << "He who laughs last is laughing at you.\n";

} else if (fortune == 7) {

std::cout << "If you look back, you'll soon be going that way.\n";

} else if (fortune == 8) {

std::cout << "You will die alone and poorly dressed.\n";

} else if (fortune == 9) {

std::cout << "The fortune you seek is in another cookie.\n";

}

}

To preserve code formatting in forum posts, see: How do I format code in my posts?

You are referring to the exercise

Can you elaborate on what error message you are seeing? Does the bash terminal or exercise give any feedback/error? After fixing any errors, are you compiling and executing the code? What do you expect to happen and what is happening or not happening instead?

Remember to fix any errors. Press the Run button to save changes. Then, re-compile and execute the file from the bash terminal.

I’ve tried all of that, I’m expecting the “Flattery will go far tonight” to be outputted, but I’ve tried several times, that is the only one that doesn’t get outputted…

There is also no error message, it just says that I’m not getting the right output text, but it’s not saying why…

Can you share a screenshot showing this feedback/popup message of it not being the right output text?

Also, go to the bottom of the exercise. Click the “Copy file” button and then paste the code in the forums using the </> button so that the formatting is not lost.

Every time the program runs, fortune will be a random integer (0 to 9). If you have fixed all the errors, all the messages will eventually appear but it will take time as it is a random process (see screenshot),