Skip to content

v0.1 Q&A

陈鼫RWHTYFZ edited this page Aug 19, 2022 · 1 revision

I'm using Windows, how can i use this tool?

Windows now is supporting WSL(Windows Subsystem Linux) !

and Announcing WSL 2

you can run ubuntu or other linux distribution on windows

using this tool directly on windows may have some bugs. cause of some function is base on linux system command.

my compilation tool is g++/gcc instead of clang++, or I'm using pypy instead of python3 ...

at first, you should install compilation tool by your self.

you can config the compliation call in lang.py

--ignore-trailing-space not support

now, the tool is using diff command to compare output, however macOS or some other OS may have different diff tool with different arguments. One solution is installing gnu's version diff,another way is modify diff_cmd and show_diff_cmd in the top of test.py.

I want to change a local language/ local compiler , or add a new program language

config lang.json for local language

run lang.py can take a view of current configuration in lang.json

modify config.json to support different platform in different language(according to the field in lang.json)

OJ remote language configuration?

run ./lang.py --oj cf can take a look of Codeforces' supported language, like below:

43	GNU GCC C11 5.1.0
52	Clang++17 Diagnostics
42	GNU G++11 5.1.0
50	GNU G++14 6.4.0
54	GNU G++17 7.3.0
2	Microsoft Visual C++ 2010
59	Microsoft Visual C++ 2017
...

left column is id,right part is description,you should modify up_lang field as id in config.json. ** IT'S STRING DON't FORGET DOUBLE QUOTATION**

can i use email as handle in Codeforces?

according to current tool's implement, if you config in that way, you can login and submit, but the tool is using codeforces' official api to get the result, and the official api doesn't support email handle, so it can't fetch the result.