online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
def input_to_int(desc = ""): try: return int(input(desc)) except ValueError: return 0 var1 = input_to_int() print(var1) var2 = input_to_int("Lorem: ") print(var2)

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue