enter image description here

when I run my code I am facing problem in gedit but it's working fine on code block. what should I do ? let me know the meaning of this error message. thanks.

  • Could you add the actual code? It's hard to tell just from the error.
    – ChrisG
    Oct 6 '15 at 20:37
  • probably you should have posted a screenshot of beginning of the error message.
    – kzidane
    Oct 6 '15 at 20:39

On a hunch, I ran a test program to see if I could duplicate the problem. I succeeded. I did it by creating the file as a function instead of creating main. Is it possible that you don't have the following structure?

#include ....    //include statements at the top

int main(void)
     //program code goes here

I'm guessing that you used something like "greedy" instead of "main". But without seeing the code and the full error message, this is just a good guess based on some clues in the screenshot that you posted.

If this answers your question, please click on the check to accept. Let's keep up on forum housekeeping. ;-)

  • how can i pm my code to on stack ??? @Cliff B
    – epic coder
    Oct 7 '15 at 6:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .