Computer Science Canada

not enough lines in output?

Author:  Trinovantes [ 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?

Author:  crossley7 [ 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?

Author:  Tony [ Wed Dec 15, 2010 6:30 pm ]
Post subject:  RE:not enough lines in output?

What is your team's name?

Author:  Trinovantes [ 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

Author:  Dan [ 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


: