Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

303 lignes
18 KiB

il y a 3 ans
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="description" content="Free and open-source online code editor that allows you to write and execute code from a rich set of languages.">
  6. <meta name="keywords" content="online editor, online code editor, online ide, online compiler, online interpreter, run code online, learn programming online,
  7. online debugger, programming in browser, online code runner, online code execution, debug online, debug C code online, debug C++ code online,
  8. programming online, snippet, snippets, code snippet, code snippets, pastebin, execute code, programming in browser, run c online, run C++ online,
  9. run java online, run python online, run ruby online, run c# online, run rust online, run pascal online, run basic online">
  10. <meta name="author" content="Herman Zvonimir Došilović">
  11. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  12. <meta property="og:title" content="Judge0 IDE - Free and open-source online code editor">
  13. <meta property="og:description" content="Free and open-source online code editor that allows you to write and execute code from a rich set of languages.">
  14. <meta property="og:image" content="https://raw.githubusercontent.com/judge0/ide/master/.github/wallpaper.png">
  15. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
  16. <script src="https://cdnjs.cloudflare.com/ajax/libs/golden-layout/1.5.9/goldenlayout.min.js" integrity="sha256-NhJAZDfGgv4PiB+GVlSrPdh3uc75XXYSM4su8hgTchI=" crossorigin="anonymous"></script>
  17. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/golden-layout/1.5.9/css/goldenlayout-base.css" integrity="sha256-oIDR18yKFZtfjCJfDsJYpTBv1S9QmxYopeqw2dO96xM=" crossorigin="anonymous" />
  18. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/golden-layout/1.5.9/css/goldenlayout-dark-theme.css" integrity="sha256-ygw8PvSDJJUGLf6Q9KIQsYR3mOmiQNlDaxMLDOx9xL0=" crossorigin="anonymous" />
  19. <script>
  20. var require = {
  21. paths: {
  22. "vs": "https://unpkg.com/monaco-editor/min/vs",
  23. "monaco-vim": "https://unpkg.com/monaco-vim/dist/monaco-vim",
  24. "monaco-emacs": "https://unpkg.com/monaco-emacs/dist/monaco-emacs"
  25. }
  26. };
  27. </script>
  28. <script src="https://unpkg.com/monaco-editor/min/vs/loader.js"></script>
  29. <script src="https://unpkg.com/monaco-editor@0.18.1/min/vs/editor/editor.main.nls.js"></script>
  30. <script src="https://unpkg.com/monaco-editor@0.18.1/min/vs/editor/editor.main.js"></script>
  31. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css" integrity="sha256-9mbkOfVho3ZPXfM7W8sV2SndrGDuh7wuyLjtsWeTI1Q=" crossorigin="anonymous" />
  32. <script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.js" integrity="sha256-t8GepnyPmw9t+foMh3mKNvcorqNHamSKtKRxxpUEgFI=" crossorigin="anonymous"></script>
  33. <link href="https://fonts.googleapis.com/css?family=Exo+2" rel="stylesheet">
  34. <script type="text/javascript" src="third_party/download.js"></script>
  35. <script type="text/javascript" src="js/ide.js"></script>
  36. <link type="text/css" rel="stylesheet" href="css/ide.css">
  37. <title>Judge0 IDE - Free and open-source online code editor</title>
  38. <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon">
  39. <link rel="icon" href="./favicon.ico" type="image/x-icon">
  40. <script async src="https://www.googletagmanager.com/gtag/js?id=UA-83802640-2"></script>
  41. <script>
  42. window.dataLayer = window.dataLayer || [];
  43. function gtag() { dataLayer.push(arguments); }
  44. gtag('js', new Date());
  45. gtag('config', 'UA-83802640-2');
  46. </script>
  47. <script type="text/javascript">window.$crisp=[];window.CRISP_WEBSITE_ID="ee4621ff-c682-44ac-8cfa-1835beddb98a";(function(){d=document;s=d.createElement("script");s.src="https://client.crisp.chat/l.js";s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})();</script>
  48. </head>
  49. <body>
  50. <div id="site-navigation" class="ui small inverted menu">
  51. <div id="site-header" class="header item">
  52. <a href="/">
  53. <img id="site-icon" src="./images/judge0_icon.png">
  54. <h2>Judge0 IDE</h2>
  55. </a>
  56. </div>
  57. <div class="left menu">
  58. <div class="ui dropdown item site-links on-hover">
  59. File <i class="dropdown icon"></i>
  60. <div class="menu">
  61. <a class="item" target="_blank" href="/"><i class="file code icon"></i> New File</a>
  62. <div class="item" onclick="save()"><i class="save icon"></i> Save (Ctrl + S)</div>
  63. <div class="item" onclick="downloadSource()"><i class="download icon"></i> Download</div>
  64. <!-- <div class="item"><i class="share icon"></i> Share</div> -->
  65. <div id="insert-template-btn" class="item"><i class="file code outline icon"></i> Insert template
  66. for current language</div>
  67. </div>
  68. </div>
  69. <div class="link item" onclick="$('#site-settings').modal('show')"><i class="cog icon"></i> Settings</div>
  70. <div class="item borderless">
  71. <select id="select-language" class="ui dropdown">
  72. <option value="45" mode="UNKNOWN">Assembly (NASM 2.14.02)</option> <!-- Unknown mode. Help needed. -->
  73. <option value="46" mode="shell">Bash (5.0.0)</option>
  74. <option value="47" mode="UNKNOWN">Basic (FBC 1.07.1)</option> <!-- Unknown mode. Help needed. -->
  75. <option value="1011" mode="UNKNOWN">Bosque (latest)</option> <!-- Unknown mode. Help needed. -->
  76. <option value="75" mode="c">C (Clang 7.0.1)</option>
  77. <option value="1013" mode="c">C (Clang 9.0.1)</option>
  78. <option value="1001" mode="c">C (Clang 10.0.1)</option>
  79. <option value="48" mode="c">C (GCC 7.4.0)</option>
  80. <option value="49" mode="c">C (GCC 8.3.0)</option>
  81. <option value="50" mode="c">C (GCC 9.2.0)</option>
  82. <option value="51" mode="csharp">C# (Mono 6.6.0.161)</option>
  83. <option value="1017" mode="csharp">C# (Mono 6.10.0.104)</option>
  84. <option value="1016" mode="csharp">C# (.NET Core SDK 3.1.302)</option>
  85. <option value="1018" mode="csharp">C# Test (.NET Core SDK 3.1.302, NUnit 3.12.0)</option>
  86. <option value="76" mode="cpp">C++ (Clang 7.0.1)</option>
  87. <option value="1014" mode="cpp">C++ (Clang 9.0.1)</option>
  88. <option value="1002" mode="cpp">C++ (Clang 10.0.1)</option>
  89. <option value="52" mode="cpp">C++ (GCC 7.4.0)</option>
  90. <option value="53" mode="cpp">C++ (GCC 8.3.0)</option>
  91. <option value="54" mode="cpp">C++ (GCC 9.2.0)</option>
  92. <option value="1015" mode="cpp">C++ Test (Clang 10.0.1, Google Test 1.8.1)</option>
  93. <option value="1012" mode="cpp">C++ Test (GCC 8.4.0, Google Test 1.8.1)</option>
  94. <option value="1003" mode="c">C3 (latest)</option> <!-- Replacement mode. Help needed. -->
  95. <option value="86" mode="clojure">Clojure (1.10.1)</option>
  96. <option value="77" mode="UNKNOWN">COBOL (GnuCOBOL 2.2)</option> <!-- Unknown mode. Help needed. -->
  97. <option value="55" mode="UNKNOWN">Common Lisp (SBCL 2.0.0)</option> <!-- Unknown mode. Help needed. -->
  98. <option value="56" mode="UNKNOWN">D (DMD 2.089.1)</option> <!-- Unknown mode. Help needed. -->
  99. <option value="57" mode="UNKNOWN">Elixir (1.9.4)</option> <!-- Unknown mode. Help needed. -->
  100. <option value="58" mode="UNKNOWN">Erlang (OTP 22.2)</option> <!-- Unknown mode. Help needed. -->
  101. <option value="44" mode="plaintext">Executable</option>
  102. <option value="87" mode="fsharp">F# (.NET Core SDK 3.1.202)</option>
  103. <option value="1019" mode="fsharp">F# (.NET Core SDK 3.1.302)</option>
  104. <option value="59" mode="UNKNOWN">Fortran (GFortran 9.2.0)</option> <!-- Unknown mode. Help needed. -->
  105. <option value="60" mode="go">Go (1.13.5)</option>
  106. <option value="88" mode="UNKNOWN">Groovy (3.0.3)</option> <!-- Unknown mode. Help needed. -->
  107. <option value="61" mode="UNKNOWN">Haskell (GHC 8.8.1)</option> <!-- Unknown mode. Help needed. -->
  108. <option value="62" mode="java">Java (OpenJDK 13.0.1)</option>
  109. <option value="1004" mode="java">Java (OpenJDK 14.0.1)</option>
  110. <option value="1005" mode="java">Java Test (OpenJDK 14.0.1, JUnit Platform Console Standalone 1.6.2)</option>
  111. <option value="63" mode="javascript">JavaScript (Node.js 12.14.0)</option>
  112. <option value="78" mode="kotlin">Kotlin (1.3.70)</option>
  113. <option value="64" mode="lua">Lua (5.3.5)</option>
  114. <option value="1006" mode="c">MPI (OpenRTE 3.1.3) with C (GCC 8.3.0)</option>
  115. <option value="1007" mode="cpp">MPI (OpenRTE 3.1.3) with C++ (GCC 8.3.0)</option>
  116. <option value="1008" mode="python">MPI (OpenRTE 3.1.3) with Python (3.7.3)</option>
  117. <option value="1009" mode="python">Nim (stable)</option> <!-- Replacement mode. Help needed. -->
  118. <option value="79" mode="objective-c">Objective-C (Clang 7.0.1)</option>
  119. <option value="65" mode="UNKNOWN">OCaml (4.09.0)</option> <!-- Unknown mode. Help needed. -->
  120. <option value="66" mode="UNKNOWN">Octave (5.1.0)</option> <!-- Unknown mode. Help needed. -->
  121. <option value="67" mode="pascal">Pascal (FPC 3.0.4)</option>
  122. <option value="85" mode="perl">Perl (5.28.1)</option>
  123. <option value="68" mode="php">PHP (7.4.1)</option>
  124. <option value="43" mode="plaintext">Plain Text</option>
  125. <option value="69" mode="UNKNOWN">Prolog (GNU Prolog 1.4.5)</option> <!-- Unknown mode. Help needed. -->
  126. <option value="70" mode="python">Python (2.7.17)</option>
  127. <option value="71" mode="python">Python (3.8.1)</option>
  128. <option value="1010" mode="python">Python for ML (3.7.3)</option>
  129. <option value="80" mode="r">R (4.0.0)</option>
  130. <option value="72" mode="ruby">Ruby (2.7.0)</option>
  131. <option value="73" mode="rust">Rust (1.40.0)</option>
  132. <option value="81" mode="UNKNOWN">Scala (2.13.2)</option> <!-- Unknown mode. Help needed. -->
  133. <option value="82" mode="sql">SQL (SQLite 3.27.2)</option>
  134. <option value="83" mode="swift">Swift (5.2.3)</option>
  135. <option value="74" mode="typescript">TypeScript (3.7.4)</option>
  136. <option value="84" mode="vb">Visual Basic.Net (vbnc 0.0.0.5943)</option> <!-- (vbnc 0.0.0.5943) -->
  137. </select>
  138. </div>
  139. <div class="item fitted borderless wide screen only">
  140. <div class="ui input">
  141. <input id="compiler-options" type="text" placeholder="Compiler options"></input>
  142. </div>
  143. </div>
  144. <div class="item borderless wide screen only">
  145. <div class="ui input">
  146. <input id="command-line-arguments" type="text" placeholder="Command line arguments"></input>
  147. </div>
  148. </div>
  149. <div class="item no-left-padding borderless">
  150. <button id="run-btn" class="ui primary labeled icon button"><i class="play icon"></i>Run (F9)</button>
  151. </div>
  152. <div id="navigation-message" class="item borderless">
  153. <span class="navigation-message-text"></span>
  154. </div>
  155. </div>
  156. <div class="right menu">
  157. <div id="updates" class="link item changelogfy-widget">
  158. <i class="fitted bell icon"></i>
  159. </div>
  160. <div class="ui dropdown item site-links">
  161. More
  162. <i class="dropdown icon"></i>
  163. <div class="menu">
  164. <!-- <a id="about" class="link item" target="_blank" href="https://judge0.com/about"><i class="info circle icon"></i> About</a> -->
  165. <a id="about" class="link item" target="_blank" href="https://rapidapi.com/hermanzdosilovic/api/judge0"><i class="server icon"></i> API</a>
  166. <div class="divider"></div>
  167. <a class="item" target="_blank" href="https://www.patreon.com/hermanzdosilovic"><i
  168. class="patreon icon"></i>
  169. Become a Patron</a>
  170. <a class="item" target="_blank" href="https://paypal.me/hermanzdosilovic"><i
  171. class="paypal icon"></i>
  172. Donate with PayPal</a>
  173. <div class="divider"></div>
  174. <a class="item" target="_blank" href="https://github.com/judge0/ide"><i class="github icon"></i>
  175. View source
  176. code on Github</a>
  177. <a class="item" target="_blank" href="https://github.com/judge0/ide/issues/new"><i
  178. class="exclamation circle icon"></i> Report an issue</a>
  179. <div class="divider"></div>
  180. <a class="item" target="_blank" href="https://forms.gle/p3KpGYSjxAbvGUft9"><i class="envelope icon"></i>
  181. Subscribe
  182. to Judge0 newsletter</a>
  183. <a class="item" target="_blank" href="https://discord.gg/GRc3v6n"><i
  184. class="discord icon"></i> Join a Discord server</a>
  185. <div class="divider"></div>
  186. <a class="item" target="_blank" href="mailto:hermanz.dosilovic@gmail.com"><i
  187. class="paper plane icon"></i>
  188. Contact the author</a>
  189. <a class="item" target="_blank" href="https://hermanz.dosilovic.com"><i class="user icon"></i> About
  190. the
  191. author</a>
  192. <div class="divider"></div>
  193. <a class="item" target="_blank"
  194. href="https://www.reddit.com/submit?url=https%3A%2F%2Fide.judge0.com&title=Judge0%20IDE"
  195. style="background-color: #ff4500 !important; color: white !important;"><i
  196. class="reddit icon"></i> Share
  197. on Reddit</a>
  198. <a class="item" target="_blank"
  199. href="https://twitter.com/intent/tweet?text=Judge0%20IDE&url=https%3A%2F%2Fide.judge0.com&via=hermanzvonimir"
  200. style="background-color: #1da1f2 !important; color: white !important;"><i
  201. class="twitter icon"></i>
  202. Share on Twitter</a>
  203. <a class="item" target="_blank"
  204. href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fide.judge0.com"
  205. style="background-color: #1877f2 !important; color: white !important;"><i
  206. class="facebook icon"></i>
  207. Share on Facebook</a>
  208. </div>
  209. </div>
  210. </div>
  211. </div>
  212. <div id="site-content"></div>
  213. <div id="site-modal" class="ui modal">
  214. <div class="header">
  215. <i class="close icon"></i>
  216. <span id="title"></span>
  217. </div>
  218. <div class="scrolling content"></div>
  219. <div class="actions">
  220. <div class="ui small labeled icon cancel button">
  221. <i class="remove icon"></i>
  222. Close (ESC)
  223. </div>
  224. </div>
  225. </div>
  226. <div id="site-settings" class="ui modal">
  227. <i class="close icon"></i>
  228. <div class="header">
  229. <i class="cog icon"></i>
  230. Settings
  231. </div>
  232. <div class="content">
  233. <div class="ui form">
  234. <div class="inline fields">
  235. <label>Editor Mode</label>
  236. <div class="field">
  237. <div class="ui radio checkbox">
  238. <input type="radio" name="editor-mode" value="normal" checked="checked">
  239. <label>Normal</label>
  240. </div>
  241. </div>
  242. <div class="field">
  243. <div class="ui radio checkbox">
  244. <input type="radio" name="editor-mode" value="vim">
  245. <label>Vim</label>
  246. </div>
  247. </div>
  248. <div class="field">
  249. <div class="ui radio checkbox">
  250. <input type="radio" name="editor-mode" value="emacs">
  251. <label>Emacs</label>
  252. </div>
  253. </div>
  254. </div>
  255. <div class="inline field">
  256. <div class="ui checkbox">
  257. <input type="checkbox" name="redirect-output">
  258. <label>Redirect stderr to stdout</label>
  259. </div>
  260. </div>
  261. </div>
  262. </div>
  263. </div>
  264. <div id="site-footer">
  265. <span id="donate-line">
  266. <a class="item" target="_blank" href="https://www.patreon.com/hermanzdosilovic"><i class="patreon icon" style="color: #f06553;"></i> Become a Patron</a>
  267. ·
  268. <a class="item" target="_blank" href="https://paypal.me/hermanzdosilovic"><i class="paypal icon" style="color: #00457c;"></i></i> Donate with PayPal</a>
  269. </span>
  270. <div id="editor-status-line"></div>
  271. <span>© 2016-2020 <a href="https://judge0.com">Judge0</a> · Powered by <a href="https://rapidapi.com/hermanzdosilovic/api/judge0">the most advanced open-source online code execution system</a>
  272. <span id="status-line"></span>
  273. </div>
  274. <script>
  275. let CLF_config = {
  276. selector: ".changelogfy-widget",
  277. app_id: "f6f982d0-3d91-4b1c-a3ce-b0eb54606c4e"
  278. };
  279. </script>
  280. <script async src="https://widget.changelogfy.com/index.js"></script>
  281. </body>
  282. </html>