Closed kmyk closed 4 years ago
I added it as a new subcommand guess-language-id
and not as an option of new option of submit
subcommand, becuase:
submit
subcommand. It' just a utility.submit
. It's not implemented yet, but basically the guessing is possible without any network access when the list of languages is given.--use-gcc
, --use-clang
, --use-msvc
, ...).
Description
Most online judges provides identifiers for programming languages and they are informally described. For example, in the current Codeforces, ID = 59 is displayed as
Microsoft Visual C++ 2017
and ID = 61 is displayed asGNU G++17 9.2.0 (64 bit, msys 2)
and ID = 52 is displayed asClang++17 Diagnostics
. Such mappings is different for each online judges and varies on time (i.e. this means it's difficult to embed the correct IDs).Now
oj
command has the feature to guess the correct language id from list of descriptions of language ids and user's source code. We should import the feature to guess intooj-api
command and provide users ofoj-api
command.