| |
|
Harvey Mudd College Computer Science Department Programming Practicum Reference Links HMC ACM Page C++ & STL Java 1.5 API |
|
| NAMES \ problems | 0-cheappal | 0-lexicon | 0-treasures | 0-wire |
|---|---|---|---|---|
| cs60grad | Not Yet | Not Yet | Not Yet | 1 Sep 2 16:15:42 .java |
/cs/ACM/acmSubmit <filename>.ccYou should run acmSubmit from the directory in which your submission file is located.
The script will test your file against a number of inputs. Unlike the ACM contest, if your submission's output differs from the "correct" output, the differences will be shown to you. This is a protection against the "correct" solutions not actually being correct. If your program passes all of the tests the script will let you know. It will also email me in order to help me keep the chart of solved problems updated.
While testing your code, you can compile with the commands
javac filename.javaor
g++ filename.ccto create an executable file named a.out. To check your program, copy the sample input and then redirect that file to your program, e.g.,
javaor< <testfilename>
a.out < <testfilename>That will print the results to the console (stdout) for inspection. You might also pipe the results to a file and check them against the anticipated output with diff.