Thread: Error message when I run my code, what can possibly go wrong?

  1. #1
    Registered User
    Join Date
    Apr 2011
    Posts
    12

    Error message when I run my code, what can possibly go wrong?

    Well, I'm using code block. When I click the build button the log says " 0 errors, 0 warnings". However, when I click the run button, an error report pops up. I tried it in Dev C the same thing happened. What can possibly go wrong?

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    The valuable lesson of the day that you just learned is: "Just because it compiles, doesn't mean it is error free!"


    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    As Quzah said there... "Compiles" absolutely does not mean "Works".

    Runtime errors are the bane of a programmer's existence.

  4. #4
    Registered User
    Join Date
    Sep 2008
    Location
    Toronto, Canada
    Posts
    1,834
    Lots can go wrong during running. Accessing a memory area that's not yours. Dividing by zero. Other mathematical overflows or domain errors for trig and other functions. Attempting to open a file using an improper file name and not checking error codes such as if file does not exist. Failure to write due to destination is full or inaccessible (write permissions, user authorization permissions). All that sort of stuff.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Error in my code...not sure what i did wrong
    By Gart08 in forum C Programming
    Replies: 24
    Last Post: 11-28-2010, 11:54 AM
  2. Replies: 0
    Last Post: 11-05-2010, 07:30 PM
  3. What the heck am I possibly doing wrong?
    By QuestionC in forum Tech Board
    Replies: 2
    Last Post: 04-29-2007, 08:43 PM
  4. Djgpp error, possibly with the headings i'm using
    By Unregistered in forum C++ Programming
    Replies: 6
    Last Post: 07-24-2002, 11:02 PM
  5. error message code
    By Flex in forum C Programming
    Replies: 1
    Last Post: 02-27-2002, 12:21 PM