Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 not enough lines in output?
Index -> CompSci.ca, Contests -> DWITE
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Trinovantes




PostPosted: Wed Dec 15, 2010 6:18 pm   Post subject: not enough lines in output?

on round 3 of dwite (today), all of my team's answers were 0/5 because the compiler said that the output file didnt have enough lines

is it just our coding (we did a simple for loop 1 to 5 and each time at least write something) or is there something wrong with the compiler?
Sponsor
Sponsor
Sponsor
sponsor
crossley7




PostPosted: Wed Dec 15, 2010 6:19 pm   Post subject: RE:not enough lines in output?

did you output to a file? and also, what program did you use?
Tony




PostPosted: Wed Dec 15, 2010 6:30 pm   Post subject: RE:not enough lines in output?

What is your team's name?
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Trinovantes




PostPosted: Wed Dec 15, 2010 6:32 pm   Post subject: Re: not enough lines in output?

"we still use vb.net"
i know, we're terrible >.< but we still tried

edit:

nvm it was actually our mistake
after having some time to look over the test results, i found that we tried to do a division by 0 which probably crashed our program... wow this was embarrassing

well hope we do better next time
Dan




PostPosted: Wed Dec 15, 2010 8:29 pm   Post subject: RE:not enough lines in output?

It's noramly a good idea to output what ever results you find as soon as you find them so you still get some marks if your program crashs or is killed latter on.

It also maybe a good idea to put in some very simple exception handling such as in this pseudocode:

code:

for each testcase:
    try:
        do testcase stuff here
        output result + newline
    exception:
        output newline

end for
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
Display posts from previous:   
   Index -> CompSci.ca, Contests -> DWITE
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: