Discussion:
A5P2 e) multiple input
(too old to reply)
Hudon
2011-07-19 02:26:52 UTC
Permalink
For Question 2 e), the reqs say "Then read lines from standard in". So we should be reading in multiple ranges (lines is plural?) and outputting the search result after every range input?

That's how I interpreted it...but if I use an input loop I fail Test1, and if I read just 1 line (1 range), I pass Test1.

Am I doing something wrong or are the requirements erroneous?
cs240
2011-07-19 14:41:33 UTC
Permalink
The tests will only be a single line of the form x1 x2 y1 y2
--
Patrick Lee
CS240 Tutor
cs240
2011-07-19 17:07:26 UTC
Permalink
Sorry, let me clarify.

All the tests will only consists of a single line "x1 x2 y1 y2" followed
by a EOF.

So submissions that expect multiple lines of tests will still pass.
--
Patrick Lee
CS240 Tutor
Loading...