Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to guess language id of .c files #805

Open
blueedgetechno opened this issue Aug 23, 2020 · 1 comment
Open

Unable to guess language id of .c files #805

blueedgetechno opened this issue Aug 23, 2020 · 1 comment

Comments

@blueedgetechno
Copy link

Description

I tried submitting .c file but I received an error saying unable to access language id

Error log

$oj s https://codeforces.com/contest/1401/problem/A A.c
[INFO] online-judge-tools 10.1.2 (+ online-judge-api-client 10.3.1)
[INFO] read history from: C:\Users\blue\AppData\Local\online-judge-tools\online-judge-tools\Cache\download-history.jsonl
[INFO] found urls in history:

[INFO] problem recognized: CodeforcesProblem.from_url('https://codeforces.com/contest/1401/problem/A'): https://codeforces.com/contest/1401/problem/A
[INFO] code (180 byte):
#include<stdio.h>\r
long long int t,n,k;\r
int main()\r
{\r
        scanf("%d",&t);\r
        while(t--){\r
                scanf("%d %d",&n,&k);\r
                printf("%d\n",(n%2^k%2)*(n>k)+(k-n)*(k>=n));\r
        }\r
        return 0;\r
}\r

[INFO] load cookie from: C:\Users\blue\AppData\Local\online-judge-tools\online-judge-tools\cookie.jar
[NETWORK] GET: https://codeforces.com/contest/1401/problem/A
[NETWORK] 200 OK
[INFO] failed to guess languages from the file name
[ERROR] Matched languages were not narrowed down to one.
[INFO] You have to choose:
12 (Haskell GHC 8.10.1)
13 (Perl 5.20.1)
19 (OCaml 4.02.1)
2 (Microsoft Visual C++ 2010)
20 (Scala 2.12.8)
28 (D DMD32 v2.091.0)
3 (Delphi 7)
31 (Python 3.7.2)
32 (Go 1.14)
34 (JavaScript V8 4.8.0)
36 (Java 1.8.0_241)
4 (Free Pascal 3.0.2)
40 (PyPy 2.7 (7.2.0))
41 (PyPy 3.6 (7.2.0))
42 (GNU G++11 5.1.0)
43 (GNU GCC C11 5.1.0)
48 (Kotlin 1.3.70)
49 (Rust 1.42.0)
50 (GNU G++14 6.4.0)
51 (PascalABC.NET 3.4.2)
52 (Clang++17 Diagnostics)
54 (GNU G++17 7.3.0)
55 (Node.js 12.6.3)
59 (Microsoft Visual C++ 2017)
6 (PHP 7.2.13)
60 (Java 11.0.6)
61 (GNU G++17 9.2.0 (64 bit, msys 2))
7 (Python 2.7.15)
8 (Ruby 2.7.1)
9 (C# Mono 6.8)

Other notes

  • Will you try to create a pull request?
    • no
@kmyk
Copy link
Member

kmyk commented Nov 7, 2020

Note: this issue is blocked by #781

I recommend to use C++ instead, as a workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants