ANONYMOUS wrote:
> I recently tried to run the project code on the CSSE lab computers (Room 203 in the Computer Science building), but when I tried to run WSL it wouldn't even open (I think due to administrative reasons?) Ubuntu wasn't available either, so I'm not sure how to run the code to see if it works on the lab computers.
In Labs 2.03 and 2.05 you should first reboot the machine if it is running Windows.
When given the menu to choose which OS to boot, choose Linux/Ubuntu.
There may be some setup difference between different computers in the same lab, so you may need to try 1 or 2.
> My project partner and I get different outputs when running the same code on our laptops (mine gets a segmentation fault after waiting for a long period of time, theirs prints out the output straight away), so help would be greatly appreciated.
There's no single guaranteed cause/explanation.
How similar are the two laptops (same sized 'int's in C, for example)?
The whole program should be extremely fast, taking well less than (real) second to execute, so anything that takes "a long period of time" suggests an infinite while or for loop which, eventually, accesses memory that your program doesn't own - hence the segmentation violation. Any chance of that?