Expected results for test: P3-17.pl460

P3-17.pl460 :

(define (main)
	(display (append (append (cdr '(0 1 2)) (cdr '(3 5 5))) (cons (car '(0 1 2)) (cdr '(3 5 5)))))
	(newline)
	(display (cons (cons (cdr '(0 1 2)) (cdr '(3 5 5))) (append (car '((0 1) 2)) (cdr '(3 5 5)))))
	(newline)
)

(main)

Input file: P3-17.pl460

0 errors found in input file
P3-17.cpp :

// Autogenerated PL460 to C++ Code
// File: P3-17.cpp

#include <iostream>
#include "Object.h"
using namespace std;


int main ()
{
	Object __RetVal;
	cout << listop ("append", listop ("append", listop ("cdr", Object("(0 1 2 )")), listop ("cdr", Object("(3 5 5 )"))), listop ("cons", listop ("car", Object("(0 1 2 )")), listop ("cdr", Object("(3 5 5 )"))));
	cout << endl;
	cout << listop ("cons", listop ("cons", listop ("cdr", Object("(0 1 2 )")), listop ("cdr", Object("(3 5 5 )"))), listop ("append", listop ("car", Object("((0 1 ) 2 )")), listop ("cdr", Object("(3 5 5 )"))));
	cout << endl;
	return 0;
}

PL460 program output: 

(1 2 5 5 0 5 5)
(((1 2) 5 5) 0 1 5 5)

C++ program output: 

(1 2 5 5 0 5 5)
(((1 2) 5 5) 0 1 5 5)

Differences:			      < pl460 | cpp >

(1 2 5 5 0 5 5)					(1 2 5 5 0 5 5)
(((1 2) 5 5) 0 1 5 5)				(((1 2) 5 5) 0 1 5 5)