online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
def QUIZ(): print ("Quiz time!") x=0 a=int(input("How many books are there in the Harry Potter series? ")) if a==7: print ("Correct") x=x+1 else: print ("No") e=int(input("What is the famous book in the Ender series? 1.Ender's Game 2.Ender's Shadow 3.Speaker for the Dead 4.Xenocide ")) if e==1: print ("Correct") x=x+1 else: print ("No") b=float(input("What is 3*2.3?")) if str(b)=="6.9": print ("Correct") x=x+1 else: print ("No") c=str(input("近代原子论是由谁提出的?A. 道尔顿B. 汤姆生C. 卢瑟福")) if c=="A": print ("Correct") x=x+1 else: print ("No") d=int(input("Who is on the front of a one dollar bill?1. George Washington2. Abraham Lincoln3. John Adams4. Thomas Jefferson")) if d==2: print ("Correct") x=x+1 else: print ("No") print("Congratulations, you got "+str(x)+" answers right.") print("That is a score of "+str(x/5*100)+" percent.") QUIZ()

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