judge0 / ide Goto Github PK
View Code? Open in Web Editor NEW✨ Simple, free and open-source online code editor.
Home Page: https://ide.judge0.com
License: MIT License
✨ Simple, free and open-source online code editor.
Home Page: https://ide.judge0.com
License: MIT License
I recently tried a code with a very long stdin
It outputs error, Any solution?
Here's the code
# Enter your code here. Read input from STDIN. Print output to STDOUT
a, b = (int(x) for x in input().split())
happy = 0
l = [int(x) for x in input().split()]
A = set(int(x) for x in input().split())
B = set(int(x) for x in input().split())
for x in l:
if x in A: happy += 1
elif x in B: happy -= 1
print(happy)
This link contains the input testcase: https://hr-testcases-us-east-1.s3.amazonaws.com/8382/input03.txt?AWSAccessKeyId=AKIAJ4WZFDFQTZRGO3QA&Expires=1562489870&Signature=9WAGMM9%2Ftargc%2FgXD7YemRS%2BQGc%3D&response-content-type=text%2Fplain
Response for any type of program
{
"readyState": 0,
"status": 0,
"statusText": "error"
}
Reason: data.token
on line 47 should be data.id
js/ide.js
❤️ your work !!
something like
https://ide.judge0.com/?github_file=https://github.com/kerolloz/random-dog-image/blob/master/script.js
or
https://ide.judge0.com/?gist=https://gist.github.com/kerolloz/3b316ff9a51752af1f6b3e6ddb770cf0
so these links should enable me to open the files and run them on judge0 ide
When we submit code and click on submit button it stuck at running phase, may problem with API ?
Running Judge0/ide on local and webhost and it's very slow to run the code, am I missing something?
max cpu_time_limit is 5. It should be 15 as per the value of max_cpu_time_limit.
Thanks for all your hard work.
Hi is possible that I can make the code Compile on my site rather than using an API? I find the API works in waves. One point it’s fast next it’s crawling.
Hi!
Just in case You do not know, v is panicking when I run helloworld example:
V panic: No such file or directory
| 0x559880399ef0 | /usr/local/v/v(+0x2ef0)
| 0x5598803cc808 | /usr/local/v/v(+0x35808)
| 0x5598803f752b | /usr/local/v/v(+0x6052b)
| 0x5598803f9087 | /usr/local/v/v(+0x62087)
| 0x7fa3c1c862e1 | /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)
| 0x5598803989ba | /usr/local/v/v(+0x19ba)
I'm unable to run the input() function in Python here. This is my code:
x = input('What is your name? ')
print(x)
Can we create manual URL instead of random URL?
Sir is there any way to enable embed/share code by users ??
Could be possible to easily integrate additional python images to support some machine learning / deep learning tools with at least CPU support. Will investigate as I found: https://hub.docker.com/r/tensorflow/tensorflow/.
{
"readyState": 0,
"status": 0,
"statusText": "error"
}
Hello,
I see that the judge0 IDE has Vim mode. Can we also please have an Emacs mode?
Since June 1st, it can't work with public api, it will be easier to deploy if you can support RapidAPI (like clone the code, fill the auth token and ready-to-use).
Hello,
I was just going to try out the Emacs support on https://ide.judge0.com/, when I realized that Nim is one of the options in the langauge dropdown there.
The only way to access Nim Playground is by going to it subdomain: https://nim.ide.judge0.com/.
Is there a limitation that prevents Nim Playground from being accessed from https://ide.judge0.com/ as well?
plz help me @hermanzdosilovic
when we press ctrl+s then the ouput message is as per below
{
"readyState": 0,
"status": 0,
"statusText": "error"
}
Having a single output reduces clicks and makes it more similar to a bash terminal.
Currently, if we download the source code the filename always main.{ext}
It would be nice if we can change the filename in the editor
I want to display Dynamic questions and Judge0 source Editor on same page
For Example:
Multiple Questions followed by multiple Source Editors
Issue:
First Question Source Editor Only Enabled and working properly Others not working.
Please let me help with this issue.
There are currently three editors: source code, input and output editor. Each of them cannot be resized.
It would be great if each editor could be resized. Source code editor in up/down direction, and input and output editor in left/right direction.
Hi Sir,
I cloned judge0/ide/rapidapi branch then add all credentials for judge0 extra CE. But when I run "Python for ML" code it gives me Error 403.
Is there any way to run "Python for ML" locally without using Docker?
Can Somebody please help me on this? @hermanzdosilovic @ron-popov
Thanks in advance !!
Hi Herman,
When i try to open the IDE https://ide.judge0.com in mobile devices (chrome browser) I am facing a major issue with the GUI.
Steps to reproduce:
I guess there could an easy fix, so that GUI remains intact when a user tries to expand and collapse the IDE page with fingers but I am not good in CSS and so unable to find a solution.
Kindly let me know.
Hello,
Recently uploaded the new release and was met with an odd-looking layout: https://prnt.sc/p3lplm
I tried it on my localhost as well and it doesn't appear to be showing this problem, so I'm assuming it is server related. How might I fix this?
A settings page that will contain all of the ide's settings (vim mode toggle, theme selection box, etc ...)
I have downloaded the the IDE source and I want a file opening and file saving system for my PC. How to do that?
Hi,
@hermanzdosilovic can you estimate how much work would it be, to get an "Autoformat" button working?
I figured the easiest solution could be:
For the Background: I am evaluating Online IDEs and i like the clear and simple structure of the judge0 IDE.
I've got a student research assistant which i want to give the task to get judge0 running with MPI support for multiple cluster nodes, since i want to use it to teach parallel programming. So while being at this, i am evaluating if i also want him to add this comfort feature, just to improve the readability of code. :)
Thank you and your pals for this nice platform!
Have a very good day,
Ronny
Currently the newest version is 0.1.12 whereas 0.1.22 has been released, therefore please
a) update to the most recent version
OR preferably
b) name it 0.1.x (until 0.2.x will be available) and because of the early development stage where changes happen permanently, please apply "v up" regulary (every day or even as frequent as 1h, it takes just few seconds to update)
(optionally) in case of b) older releases might be dropped
Thanks a lot!
Hey, I was Just upgrading IDE according to me my use case and in the code, I found Minio,judge0 but I am unable to understand its use case can you share some info on that?
For instance an external ruby gem or a node module or a pypi.
{
"readyState": 4,
"responseText": "403 Forbidden",
"status": 403,
"statusText": "error"
}
this type why given
It would be cool if we could change editor theme with using CodeMirror.
User would see dropdown (in navbar) of avaliable themes and when he selects his theme whole interfaces changes in that style.
User should be able to enable/disable vim mode in Judge0 IDE.
We could use CodeMirror built in functionality for this as we already use CodeMirror for our editors.
Can you also have a window to show the compile time messages too? They are very important when designing macros in Nim.
E.g. I'd like to see what's printed on stdout when just compiling https://nim.ide.judge0.com/?AJNXlTnyLuUARvFY5PvGg_WwCZXt.
Right now, which I hit Run, I see nothing in the output. In that example, I need to look at the messages during compile time as shown below.
Your IDE is down. Please check:
https://ide.judge0.com/
Return a checkbox and the information is:
{
"readyState": 0,
"status": 0,
"statusText": "error"
}
Hi,
Great work!
Your API is not working from your IDE is down. could you check?
https://ide.judge0.com/
I would like to change language of IDE by url source.
for example, if I type "http://ide.judge0.com/?language=java", language should be changed to 'java' automatically.
Is there any way to do it?
thanks,
Hey,
Can anyone PLEASE help me figure out how to use local judge0 API (which is successfully running and compiling submissions), I just dont know which URL is to be replaced in the 'ide.js' file. What line do I change this to :https://github.com/judge0/ide/blob/02d9560be8/js/ide.js#L1 so that it uses my localhost instead of sending requests to the api.judge0.com.
I have hosted the ide code in python using simpleHTTP server. I am using "http://secure.localhost/standard" instead of "https://secure.judge0.com/standard"
But it gives me CORS error like so :
Access to XMLHttpRequest at 'http://secure.localhost/standard/submissions?base64_encoded=true&wait=false' from origin 'http://secure.localhost:8000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
Please help me with this, I have been pulling my hair since days.
Regards,
Hi,
I was trying out the escape sequences in the IDE, when i used this code, i don't see the expected output.
The output should be 1245, but i get 123�45
Can you please look into this.
-Feroz.
Hi, I would like to use it in local server instead of online, How could i deploy this in local server.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.