#I keep on getting this error

28 messages · Page 1 of 1 (latest)

kind currentBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

gilded bobcat
#

read

tribal kettle
#

You're supposed to post code as code, not as a screenshot.

#

It looks like you didn't provide a main function.

#

Either rename test to main or add ```cpp
int main() {
test();
}

gilded bobcat
#

i am dumb

#

so could ou tell me where to put it

tribal kettle
#

In the file you screenshotted at the bottom.

errant kraken
#

Every c++ program needs an entry point

#

From where it should start

#

That function is main()

errant kraken
#

Inside of main you call test()

gilded bobcat
gilded bobcat
errant kraken
#

Yea

gilded bobcat
tribal kettle
#

Change the file permissions to allow reading or something.

gilded bobcat
#

wait i works

#

ok thanks

#

its all good

kind currentBOT
#

@gilded bobcat Has your question been resolved? If so, run !solved :)

kind currentBOT
#

Thank you and let us know if you have any more questions!

#

@gilded bobcat

Please Do Not Delete Posts!

Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. In the future you can use !solved to close a post and mark a post as solved.

gilded bobcat
#

!solved