Int main()? | SoloLearn: Learn to code for FREE!

+1

Int main()?

Everyone I i re enter int main() I keep getting an error. how do I fix this?

2/8/2018 5:20:27 PM

Ryan Wontz

12 Answers

New Answer

+1

@Ryan You're welcome bro!

+7

I really respect Jakob, but.. in this tread the answer to check is the one of Martin ( he also knows his stuffs ). ... just to be correct. in the lessons it's clearly mentioned that you can have one ,and only that one , main function.

+2

The error is because you have two int main() functions.

+2

Gotcha, that makes sense why you thought that. In the future, just edit what's already there or clear the editor prior to posting your code into it. Best of luck! Sorry about delay on my end. At work right now.

+2

thanks man and no problem man thanks for the help

+1

What does "I i re" mean? Actually, post your code and I'll help you that way instead. https://www.sololearn.com/Codes/ ^Post your code there, save it, and post us the link to it.

+1

I keep getting an error for the Int main() part of the code

+1

because the first function is the one they show you and the second is me writing it

0

I'll send the code but it's the basic Hello World and This is awesome code you learn in C++

0

https://code.sololearn.com/cS0No1Od43tB/?ref=app

0

I may have fixed it but I'm not sure.

0

oh, I figured when it said try it yourself it meant I could re write it in the same playground.