Go up to the main DADA homeworks page (md)
A few rules MUST be followed for the submission system to recognize your output properly:
scanf()
, cin
, System.in
, etc.), and write to standard output (printf()
, cout
, System.out
, etc.).Beyond that, a few notes and suggestions:
printf()
and cout
in a C++ program, you have to be careful (they buffer their output in different places), you need to consider ios_base::sync_with_stdio.<stdio.h>
and <stdlib.h>
. The version of g++ on the server does not. If your code compiles fine for you, and does not on the server, then try making sure all your include files are correct.Language specific information: note that the compilation command is dependent on the file extension of the first submitted file it recognizes. The execution command is more specific.
gcc *.c
; thus files can be named anything with a .c extension. The server has gcc version 5.4.0.javac Main.java
; thus, the primary file must be Main.java. Java is OpenJDK version 1.8.0.python main.py
, so make sure you name your file correctly. The system has Python version 2.7.12 (run via python main.py
) and Python version 3.5.2 (run via python3 main.py
).php main.php
, so make sure you name your file correctly. The first line in your program should be <?php
and not #!/usr/bin/php
. PHP version 7.0.22.ruby main.rb
, so make sure you name your file correctly. The Ruby version installed is ruby 2.3.1.