DomJudge Compilation Error

Jaap Eldering jaap at jaapeldering.nl
Fri Feb 22 23:48:05 CET 2019


On 22/02/2019 23:32, Marshal Dong wrote:
> So this is what I see for the C++ submission
> 
> {\rtf1\ansi\ansicpg1252\cocoartf1671 {\fonttbl\f0\fswiss\fcharset0 ArialMT;} {\colortbl;\red255\green255\blue255;\red0\green0\blue0;} {\*\expandedcolortbl;;\cssrgb\c0\c0\c0;} \margl1440\margr1440\vieww10800\viewh8400\viewkind0 \deftab720 \pard\pardeftab720\sl340\partightenfactor0 \f0\fs29\fsmilli14667 \cf2 \expnd0\expndtw0\kerning0 \outl0\strokewidth0 \strokec2 #include <iostream>\ using namespace std; \ \ int main() \{\ cout << "Hello world!" ;\ return 0; \ \}}
> 
> 
> I am not sure if it looks ok...? 

Well, that clearly looks wrong and explains why it doesn't compile. The question is how it got uploaded into the system as is in the first place.

Which version of DOMjudge are you running, on what platform (OS, version, etc.)?

Did you submit using the team web interface or the command line submit client? Can you try the other one too?

In the jury interface can you edit a submission (from the view source page), and change the source code to something that should compile and see what happens when it gets judged?

Best,
Jaap



> ------------------ Original ------------------
> *From:* Jaap Eldering <jaap at jaapeldering.nl>
> *Date:* Fri,Feb 22,2019 5:29 PM
> *To:* domjudge-devel <domjudge-devel at domjudge.org>, Marshal Dong <1243676996 at qq.com>
> *Subject:* Re: DomJudge Compilation Error
> 
> Does the submission source code look ok when you view it in the jury web interface?
> 
> 
> On February 22, 2019 11:24:27 PM GMT+01:00, Jaap Eldering <jaap at jaapeldering.nl> wrote:
> 
>     Hi,
> 
>     Are you submitting the source code? You should not submit the compiled binaries.
> 
>     Best,
>     Jaap
> 
> 
>     On February 22, 2019 11:19:31 PM GMT+01:00, Marshal Dong <1243676996 at qq.com> wrote:
> 
>         Thank you for your kind response, Michał. I actually am able to compile
>         the scripts on my own, and the outputs match the answers listed...
> 
> 
>         Or are you saying that I should try quotation marks instead of the
>         neutral ones? My cpp files is like this:
> 
> 
>         #include <iostream>
>         using namespace std;
> 
>         int main() {
>         cout << "Hello world!" ;
>         return 0;
>         }
> 
> 
>         By the way, I also tried Python (didn't pass either), and had the
>         following output:
> 
> 
>         Compiling failed with exitcode 1, compiler output: File
>         "helloworld.py", line 1 {\rtf1\ansi\ansicpg1252\cocoartf1671
>         ^ SyntaxError: unexpected character after line continuation character
> 
> 
> 
> 
> 
> 
>         ------------------ Original ------------------
>         From: Michał Kaczanowicz <mj.kaczanowicz at gmail.com>
>         Date: Fri,Feb 22,2019 5:11 PM
>         To: Marshal Dong <1243676996 at qq.com>
>         Cc: domjudge-devel <domjudge-devel at domjudge.org>
>         Subject: Re: DomJudge Compilation Error
> 
> 
> 
>         I may be wrong, but logs you have supplied indicate that you have some
>         invalid characters in your source file. Maybe its left and right
>         quotation marks, instead of neutral ones?
> 
> 
>         pt., 22 lut 2019, 22:44 użytkownik Marshal Dong <1243676996 at qq.com>
>         napisał:
> 
> 
> 
>         Hello Everyone,
> 
> 
>         So I ran into some trouble when testing DomJudge. I created a user to
>         submit the hello world solution in the demo contest, and I tried
>         several different languages. However, I cannot pass the judgehost...
>         Below is the compilation output. Any help would be greatly appreciated!
> 
> 
> 
>         Regards,
> 
> 
>         Marshal
> 
> 
>         Compiling failed with exitcode 1, compiler output: helloworld.cpp:1:2:
>         error: stray '\' in program {\rtf1\ansi\ansicpg1252\cocoartf1671 ^
>         helloworld.cpp:1:7: error: stray '\' in program
>         {\rtf1\ansi\ansicpg1252\cocoartf1671 ^ helloworld.cpp:1:12:
>         error: stray '\' in program {\rtf1\ansi\ansicpg1252\cocoartf1671
>         ^ helloworld.cpp:1:24: error: stray '\' in program
>         {\rtf1\ansi\ansicpg1252\cocoartf1671 ^
>         helloworld.cpp:2:2: error: stray '\' in program
>         {\fonttbl\f0\fswiss\fcharset0 ArialMT;} ^ helloworld.cpp:2:10: error:
>         stray '\' in program {\fonttbl\f0\fswiss\fcharset0 ArialMT;}
>         ^ helloworld.cpp:2:13: error: stray '\' in program
>         {\fonttbl\f0\fswiss\fcharset0 ArialMT;} ^
>         helloworld.cpp:2:20: error: stray '\' in program
>         {\fonttbl\f0\fswiss\fcharset0 ArialMT;} ^
>         helloworld.cpp:3:2: error: stray '\' in program
>         {\colortbl;\red255\green255\blue255;\red0\green0\blue0;} ^
>         helloworld.cpp:3:12: error: stray '\' in program
>         {\colortbl;\red255\green255\blue255;\red0\green0\blue0;} ^
>         helloworld.cpp:3:19: error: stray '\' in program
>         {\colortbl;\red255\green255\blue255;\red0\green0\blue0;}
>         ^ helloworld.cpp:3:28: error: stray '\' in program
>         {\colortbl;\red255\green255\blue255;\red0\green0\blue0;}
>         ^ helloworld.cpp:3:37: error: stray '\' in program
>         {\colortbl;\red255\green255\blue255;\red0\green0\blue0;}
>         ^ helloworld.cpp:3:42: error: stray '\' in program
>         {\colortbl;\red255\green255\blue255;\red0\green0\blue0;}
>         ^ helloworld.cpp:3:49: error: stray '\' in program
>         {\colortbl;\red255\green255\blue255;\red0\green0\blue0;}
>         ^ helloworld.cpp:4:2: error: stray '\' in program
>         {\*\expandedcolortbl;;\cssrgb\c0\c0\c0;} ^ helloworld.cpp:4:4: error:
>         stray '\' in program {\*\expandedcolortbl;;\cssrgb\c0\c0\c0;} ^
>         helloworld.cpp:4:23: error: stray '\' in program
>         {\*\expandedcolortbl;;\cssrgb\c0\c0\c0;} ^
>         helloworld.cpp:4:30: error: stray '\' in program
>         {\*\expandedcolortbl;;\cssrgb\c0\c0\c0;}
>         ^ helloworld.cpp:4:33: error: stray '\' in program
>         {\*\expandedcolortbl;;\cssrgb\c0\c0\c0;}
>         ^ helloworld.cpp:4:36: error: stray '\' in program
>         {\*\expandedcolortbl;;\cssrgb\c0\c0\c0;}
>         ^ helloworld.cpp:5:1: error: stray '\' in program
>         \margl1440\margr1440\vieww10800\viewh8400\viewkind0 ^
>         helloworld.cpp:5:11: error: stray '\' in program
>         \margl1440\margr1440\vieww10800\viewh8400\viewkind0 ^
>         helloworld.cpp:5:21: error: stray '\' in program
>         \margl1440\margr1440\vieww10800\viewh8400\viewkind0
>         ^ helloworld.cpp:5:32: error: stray '\' in program
>         \margl1440\margr1440\vieww10800\viewh8400\viewkind0
>         ^ helloworld.cpp:5:42: error: stray '\' in program
>         \margl1440\margr1440\vieww10800\viewh8400\viewkind0
>         ^ helloworld.cpp:6:1: error: stray '\' in program \deftab720 ^
>         helloworld.cpp:7:1: error: stray '\' in program
>         \pard\pardeftab720\sl340\partightenfactor0 ^ helloworld.cpp:7:6:
>         error: stray '\' in program \pard\pardeftab720\sl340\partightenfactor0
>         ^ helloworld.cpp:7:19: error: stray '\' in program
>         \pard\pardeftab720\sl340\partightenfactor0 ^
>         helloworld.cpp:7:25: error: stray '\' in program
>         \pard\pardeftab720\sl340\partightenfactor0 ^
>         helloworld.cpp:9:1: error: stray '\' in program \f0\fs29\fsmilli14667
>         \cf2 \expnd0\expndtw0\kerning0 ^ helloworld.cpp:9:4: error: stray '\'
>         in program \f0\fs29\fsmilli14667 \cf2 \expnd0\expndtw0\kerning0 ^
>         helloworld.cpp:9:9: error: stray '\' in program \f0\fs29\fsmilli14667
>         \cf2 \expnd0\expndtw0\kerning0 ^ helloworld.cpp:9:23: error:
>         stray '\' in program \f0\fs29\fsmilli14667 \cf2
>         \expnd0\expndtw0\kerning0 ^ helloworld.cpp:9:28:
>         error: stray '\' in program \f0\fs29\fsmilli14667 \cf2
>         \expnd0\expndtw0\kerning0 ^
>         helloworld.cpp:9:35: error: stray '\' in program \f0\fs29\fsmilli14667
>         \cf2 \expnd0\expndtw0\kerning0 ^
>         helloworld.cpp:9:44: error: stray '\' in program \f0\fs29\fsmilli14667
>         \cf2 \expnd0\expndtw0\kerning0
>         ^ helloworld.cpp:10:1: error: stray '\' in program \outl0\strokewidth0
>         \strokec2 #include <iostream>\ ^ helloworld.cpp:10:7: error: stray '\'
>         in program \outl0\strokewidth0 \strokec2 #include <iostream>\ ^
>         helloworld.cpp:10:21: error: stray '\' in program \outl0\strokewidth0
>         \strokec2 #include <iostream>\ ^
>         helloworld.cpp:10:31: error: stray '#' in program \outl0\strokewidth0
>         \strokec2 #include <iostream>\ ^
>         helloworld.cpp:10:50: warning: backslash-newline at end of file
>         \outl0\strokewidth0 \strokec2 #include <iostream>\
>         helloworld.cpp:13:12: error: stray '\' in program int main() \{\
>         ^ helloworld.cpp:16:1: error: stray '\' in program \}} ^
>         helloworld.cpp:1:1: error: expected unqualified-id before '{' token
>         {\rtf1\ansi\ansicpg1252\cocoartf1671 ^
>         ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>         DOMjudge-devel mailing list
>         DOMjudge-devel at domjudge.org
>         https://www.domjudge.org/mailman/listinfo/domjudge-devel
> 
> 
> -- 
> Sent from my Android device with K-9 Mail. Please excuse my brevity.



More information about the DOMjudge-devel mailing list