int main() { error

In the quest for a downloadable program I ran across the fearsome error on the "int main() { " line
The error reads “function definition is not allowed here
int main() {
If anyone has run into this error and knows how to fix it please help.

the carrot is supposed to be under the curly bracket but the forum doesn’t send the message like I sent it

It’s hard to see what’s going on without seeing much of the code. This sounds like your getting an error because you’re trying to define a function inside another function. You can call functions from inside other functions, but you cannot define them there.

You missed a } at some point further up in the program.