It's UWAweek 30 (2nd semester, week 1)

help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.
Displaying selected article
Showing 1 of 1168 articles.
Currently 14 other people reading this forum.


 UWA week 36 (2nd semester, mid-semester break) ↓
SVG not supported

Login to reply

👍?
helpful
3:57am Wed 6th Sep, Christopher M.

"Jacob Read" <23*7*9*6@s*u*e*t*u*a*e*u*a*> wrote:
> Something tells me there might be some overflow in the sample solution. The timing definitely shouldn't be negative. This is using:
I believe the problem reporting negative I/O times has been corrected. Please report any problems. The arithmetic was being performed using a standard int (4 bytes), which overflowed with larger (faster) I/O speeds. If you're having similar problems, you can perform the arithmetic using int64_t or double. You may like to read about the ceil() function, too.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  7:24AM Jul 25 2024
Privacy policy