The Beastie Forums
Where the Beastie Websites meet the World!

Home » The CS201 Forums » Programming Assignment 0 » Test #34
Test #34 [message #7233] Mon, 06 February 2017 17:38 Go to next message
ajherriott is currently offline ajherriott
Understands Conditionals
Messages:6
Registered:January 2017
On my first resubmission, I failed only test #34, but when I run the test described in the email, there are no errors. However, it seems the test in the email is cut short because there is no call to displayQueue. Is there a way to get a full description of the tests for resubmission 1?

Report message to a moderator

Re: Test #34 [message #7234 is a reply to message #7233] Mon, 06 February 2017 17:51 Go to previous messageGo to next message
jarobinson3 is currently offline jarobinson3
Hacker
Messages:102
Registered:August 2016
Location: SEC 3429
More than likely it times out. Does it take a while for your example to run?


Please study.

Report message to a moderator

Re: Test #34 [message #7241 is a reply to message #7234] Mon, 06 February 2017 18:37 Go to previous messageGo to next message
ajherriott is currently offline ajherriott
Understands Conditionals
Messages:6
Registered:January 2017
Not at all. Here is what the email says.
Quote:

timeout: the monitored command dumped core
./timelimit: line 24: 5435 Segmentation fault timeout $*
TEST #34 failed abnormally
These operations led to the failure:
queue *a = newQueue(displayInteger);
enqueue(a,newInteger(43));
enqueue(a,newInteger(68));
enqueue(a,newInteger(49));
enqueue(a,newInteger(51));
dequeue(a,0);
enqueue(a,newInteger(19));
dequeue(a,3);
enqueue(a,newInteger(84));
dequeue(a,3);
enqueue(a,newInteger(15));
enqueue(a,newInteger(97));
enqueue(a,newInteger(38));
enqueue(a,newInteger(11));
dequeue(a,0);
dequeue(a,3);
dequeue(a,3);
dequeue(a,3);
dequeue(a,2);
dequeue(a,0);
dequeue(a,0);
enqueue(a,newInteger(60));
dequeue(a,0);
enqueue(a,newInteger(10));
enqueue(a,newInteger(5));
dequeue(a,0);
dequeue(a,0);

Report message to a moderator

Re: Test #34 [message #7282 is a reply to message #7241] Tue, 07 February 2017 16:18 Go to previous messageGo to next message
jarobinson3 is currently offline jarobinson3
Hacker
Messages:102
Registered:August 2016
Location: SEC 3429
Not sure. Timeout says that your program dumped core. Possibly memory access/allocation issues.


Please study.

Report message to a moderator

Re: Test #34 [message #7289 is a reply to message #7282] Tue, 07 February 2017 19:30 Go to previous messageGo to next message
lusth is currently offline lusth
Guru
Messages:298
Registered:August 2013
You should be able to make a test program with those commands; that program, if you are lucky, will have a segmentation fault on the last operation.

Report message to a moderator

Re: Test #34 [message #7328 is a reply to message #7289] Wed, 08 February 2017 16:50 Go to previous message
ajherriott is currently offline ajherriott
Understands Conditionals
Messages:6
Registered:January 2017
It worked perfectly when you extended the time-limit.

Report message to a moderator

Previous Topic: Test #36
Next Topic: module organization
Goto Forum:
  


Current Time: Sun Apr 30 21:32:00 CDT 2017

Total time taken to generate the page: 0.00430 seconds