Help needed!

This is a discussion on Help needed! within the C Programming forums, part of the General Programming Boards category; Hey there! I've tried everything to solve my problem but for the life of me, I can't do it by ...

  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    5

    Help needed!

    Hey there!

    I've tried everything to solve my problem but for the life of me, I can't do it by myself.

    My project doesn't have any errors when i try to compile it. It gives the outputs I expected but when I try to submit it to the submission system of my university, the project doesn't pass in most of the tests.

    I can't figure out where or what the error is.
    Any suggestions?

  2. #2
    Registered User
    Join Date
    Mar 2009
    Posts
    399
    I suggest you ask the people responsible for the submission system.

  3. #3
    Registered User
    Join Date
    May 2010
    Posts
    5
    The problem isn't in the submission system itself.
    The system runs around 20 tests (I don't have access to them) over my project and if it passes in all of them, then it's accepted.

    I thought I might have an error somewhere but the thing is that my teacher gave us some examples of tests and when I run them, the output I get is exactly the same one my teacher provided.

    I'm really running out of ideas..

  4. #4
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,649
    Sounds like you'd better talk to your teacher.

  5. #5
    Registered User
    Join Date
    May 2010
    Posts
    5
    I talked to him and he suggested I should try and run it in another machine. And I did. And I still get the same thing.

    If the outputs are exactly the same then the problem isn't in the code, right?

  6. #6
    Registered User
    Join Date
    Jun 2009
    Posts
    452
    There are plenty of things that could be wrong with outputs - formatting, for example, could cause problems if the tests are looking for a specific format and your output has spaces where there should be tabs, or some silly little detail like that. If you are getting the right output but it is not being accepted, you might want to take a careful look at your formatting.

    Otherwise, just talk to your teacher. We don't know anything at all about your project, so we really can't help you. If you want useful help instead of random guessing, post your code and details of what it is supposed to do.
    Last edited by KBriggs; 05-30-2010 at 03:54 PM.

  7. #7
    Registered User
    Join Date
    Jan 2009
    Posts
    1,485
    If you didn't compile with warnings turned on, you could try that.

  8. #8
    Registered User
    Join Date
    May 2010
    Posts
    5
    Okay. Thank you.

    Yeah..I know it's hard when you're not familiar with the project.

  9. #9
    Registered User
    Join Date
    May 2010
    Posts
    5
    I compiled it w/ warnings turned on..

  10. #10
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    You might be getting the right output, but it appears your program is doing something that the submissions system is programmed to reject.

    Re-read your assignment with a clear mind, and forget this "there's nothing wrong with my program" idea -- of course that's the human way to think, but there is OBVIOUSLY *SOMETHING* wrong with your program.

    Adopt that attitude, and go hunting!!

    "Join me if you will Dr. Watson - the game's afoot!"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. free needed or not?
    By quantt in forum Linux Programming
    Replies: 3
    Last Post: 06-25-2009, 09:32 AM
  2. C Programmers needed for Direct Hire positions
    By canefan in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 09-24-2008, 11:55 AM
  3. C++ help needed
    By Enkindu in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 08-31-2004, 11:24 PM
  4. Replies: 1
    Last Post: 05-30-2003, 02:31 AM
  5. help needed with array
    By noob2c in forum C Programming
    Replies: 5
    Last Post: 05-24-2003, 09:02 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21