10/13 Updated:
Well......
My program prints " writeln(a,b,c); ", and it should be " writeln(a,b,c) ".
Why didn't I find it?
-----------------------------------------------------
There must be some stupid mistakes in my code, but I can't find it.
Can anyone tell me what's wrong with my code?
Thanks ...
Search found 4 matches
- Thu Oct 12, 2006 2:35 pm
- Forum: Volume 1 (100-199)
- Topic: 110 - Meta-Loopless Sorts
- Replies: 92
- Views: 16464
- Sat Aug 12, 2006 6:07 am
- Forum: Volume 1 (100-199)
- Topic: 102 - Ecological Bin Packing
- Replies: 485
- Views: 116932
Your program prints an unnecessary line when End-Of-File is reached.
( cin.eof() returns true if the eofbit stream's error flag has been set by a previous i/o operation. )
Why not just write something like this:
( cin.eof() returns true if the eofbit stream's error flag has been set by a previous i/o operation. )
Why not just write something like this:
Code: Select all
z = 0;
while(cin >> x[z]) {
if(++z<9) continue;
- Fri Aug 11, 2006 8:09 am
- Forum: Volume 1 (100-199)
- Topic: 105 - The Skyline Problem
- Replies: 160
- Views: 51481
- Tue Aug 08, 2006 2:14 pm
- Forum: Volume 1 (100-199)
- Topic: 105 - The Skyline Problem
- Replies: 160
- Views: 51481
[Solved]105 The Skyline Problem: Runtime Error
I've tested my codes many times.
I even used some input files with random numbers, and I didn't find any problems.
But after I submited it, I got RE.
It said : Invalid memory reference
Well, I know there are some easier ways to solve The Skyline Problem, but I just want to know why this code couldn ...
I even used some input files with random numbers, and I didn't find any problems.
But after I submited it, I got RE.
It said : Invalid memory reference
Well, I know there are some easier ways to solve The Skyline Problem, but I just want to know why this code couldn ...