Code blocks embedded in the course text that display a 実行 (Run) button can be edited and run directly on the page.
Code cannot be run in materials used in the 本試験 (Official Exam) mode or 模擬試験 (Mock Exam) mode.
実行 (Run).標準出力 (Standard Output) and 標準エラー出力 (Standard Error Output) are displayed, along with the execution results—for Python, the value of the last expression, figures, and so on.リセット (Reset) to restore the code to its original content as written in the material. The standard input field is also cleared.For code blocks where standard input is enabled in the material, a 標準入力 (Standard Input) field is displayed below the code. Programs that read standard input, such as those using input() (Python) or Scanner (Java), receive the contents of this field.
標準入力 field cannot use standard input. If you run code that causes an error due to missing standard input, such as Python's input() or Java's Scanner, the message このコードブロックでは標準入力を使用できません (Standard input cannot be used in this code block) is displayed. For other languages, check 標準出力 and 標準エラー出力.標準エラー出力.プログラムが正常に終了しませんでした (The program did not terminate normally) is displayed, an error has occurred or the execution time has been exceeded. If 標準エラー出力 is displayed, check its contents and fix the code. When the execution time is exceeded, 標準エラー出力 may not be displayed.実行に失敗しました (Execution failed) is displayed, communication with the execution environment has failed. Wait a while and then try running the code again.