Title |
User |
Message |
Date Posted |
Re: 7/8 |
jargon |
ccc96s4: ccc = Canadian Computing Competition 96 = 1996 s = Senior 4 = Problem #4. The CCC consists only of two stages: the first, open stage; and the second, invitation-only stage, known as the Can... |
Jan 12, 2017 - 7:41:02 am UTC |
Re: 7/8 |
MstrPikachu |
I'm just thinking how it took me an hour to find one typo The problem is called ccc96 *s4* because it's stage 4 so it's harder? |
Jan 12, 2017 - 2:23:05 am UTC |
Re: 7/8 |
jargon |
Yes, hence "Your Output (clipped)". |
Jan 11, 2017 - 8:29:34 am UTC |
7/8 |
MstrPikachu |
When it gives you your output does it clip it to 20 or so characters? |
Jan 11, 2017 - 2:59:56 am UTC |
Re: Re: I+I=CONCORDIA CUM VERITATE |
jargon |
Just add a return 0; to the end of your function. (You could improve the function by using the switch statement instead of an if-elsif-elsif ladder.) PS: Could we please have an inline monospace te... |
Sep 05, 2009 - 5:04:52 pm UTC |
Re: Re: I+I=CONCORDIA CUM VERITATE |
Bryan |
haha ignored the warning ftw how should i have fixed it? |
Sep 05, 2009 - 4:52:48 pm UTC |
Re: Re: I+I=CONCORDIA CUM VERITATE |
hansonw1 |
OK, here's a detailed explanation: Although technically you're going out of bounds, 99% of C++ implementations will have their strings null-terminated - so s[s.size()] will be the null character with... |
Sep 05, 2009 - 3:56:04 pm UTC |
Re: Re: I+I=CONCORDIA CUM VERITATE |
jargon |
Different compiler and environment might have an effect. (Not too sure about the former.) The judge compiles with g++ 4.1; I compiled with Bloodshed Dev. Also, the judge runs programs in a linux env... |
Sep 05, 2009 - 3:02:56 pm UTC |
Re: Re: I+I=CONCORDIA CUM VERITATE |
Bryan |
okay so why did it work on mine and yves' computers? |
Sep 05, 2009 - 2:59:51 pm UTC |
Re: I+I=CONCORDIA CUM VERITATE |
hansonw1 |
The rometoint function goes out of bounds |
Sep 05, 2009 - 12:16:15 pm UTC |