CSC3270: Advanced Programming Laboratory (Fall 2006)

Working Environment:

Compiler used in the judge system: ANSI C++ standard. (g++ 3.2)
How to compile your source code: g++ -Wall -o program program.cpp -lm
where -Wall To show all warning and error messages (optional).
-o program To place the output to the file program.
program.cpp Your source code.
-lm Link with the math library (optional).
How to run your program: ./program < inputFile > outputFile
where inputFile Your own input data set.
outputFile The output file to be generated.

There are some differences between 2.x and 3.x versions of g++, especially in the ways they handle STL extension. Make sure you use at least g++ 3.x if you want to use such extension.

A special flag ”-ansi” should be used with g++ in the Unix platform in our department in order to support ANSI C++ standard. e.g. g++ -Wall -o program program.cpp -lm -ansi

There are some minor differences when we do not use the flag. However, if your program is coded correctly, it behaves the same as being compiled in an ANSI C++ standard compiler.

I/O Standard:

Input: Input from “stdin”.
The input format strictly follows the problem specification.
Output: Output to “stdout”.
The output format strictly follows the problem specification.
Any differences in the output format including white spaces (space, '\t', '\v', '\r', '\f'), spellings or punctuations will not be accepted.
Generally, there should be no white space at the end of each line, and no blank line (new-line '\n') at the end of the output, unless it is specially stated in the problem specification.

No file I/O is allowed in the source codes.

Source Code Header:

Header: A line of comment should be added at the first line of your source code:
where CSC3270@ It specifies that the attachment is a submission of homework source code.
<sid> Your student ID.
<lid> Your login ID.
<pid> The problem ID.
Header example: /

Submission Guideline:

Start time: Every other Wednesday 00:00:00.
End time: Every other Tuesday 23:59:59, two weeks from the start time.
Email address of judge server: csc3270@pc89072
Email software: You must use “mail”. Do not use other email software.
Email environment: Unix platform in our department.
Submission example: mail csc3270@pc89072 < program.cpp
Reply: A judge reply will be sent to the reply-address specified in your email in about 10 minutes after your submission.

Please check for the reply email and statistic on the course homepage to confirm the success of your submission. For issues other than the homework submission, please post news to the course newsgroup.

Judge Reply Interpretation:

Submission Error: Error in the header fields.
e.g. “CSC3270@” not correct, student ID not found, login ID not matched with the student ID, wrong problem ID, etc.
Compilation Error: Completed header checking. Error in compilation.
Runtime Error: Completed compilation. Error in execution of the program.
where Segmentation Fault: Usually cause by null pointer or array index out of bound exception.
Floating Point Exception: Usually cause by invalid floating point operations.
Program Aborted: Unknown error that makes your program to abort.
Time Limit Exceeded: The program runs too much time. It does not allow us to know if the program can give correct answers or not.
Output Limit Exceeded: The program writes too much information. It often occurs if it goes into an infinite loop.
Presentation Error: Correct answers. Wrong output format. Please check for white spaces.
Accepted: Correct answers. Correct output format

Marking Scheme:

Minimum Requirement: Solve any 2 problems.
Weighting scheme: Equal weighting for each problem.
Total marks for each problem: 100 marks.
Deadline: Every other Tuesday 23:59, two weeks from the start time.
If not accepted before deadline: 0 mark.
If accepted before deadline: 30 + (70 - penalty * 5) marks.
Penalty: penalty = max(0, (Nsubmission - 1))
Bonus: Time for finishing homework.
Number of problems solved (greater than 2).

* Do not submit if the last submission is accepted, because it will be counted as a wrong-answer submission.
* Do not submit after the deadline, because the judge will be changed for the problem set of the next homework. Any submissions with “Submission Error” will not be counted as a wrong-answer submission.

teaching/csc3270/guidelines.txt · Last modified: 2006/10/16 16:26 (external edit)     Back to top