online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#Airforce Project import time as t class Russia: hp = 700 class Bomb: dmg = 150 many = 4 class Airstrikes: dmg = 50 many = 2 class USA(Russia): pass player1 = input("Player1. What country do you want to be with?(Russia or USA)\n").lower() if player1 == "russia": class Player1(Russia): pass elif player1 == "usa": class Player1(USA): pass else: print("Country not defined. Please try again.") player1 = input("What country do you want to be with?(Russia or USA)\n").lower() play1 = Player1() player2 = input("Player 2. What country do you want to play with?(Russia or USA)\n").lower() if player2 == player1: print("You can't have the same country as player1. Please enter another country.") player2 = input("Player 2. What country do you want to play with?(Russia or USA)\n").lower() elif player2 == "russia": class Player2(Russia): pass elif player2 == "usa": class Player2(USA): pass play2 = Player2() #Attacking Section while play1.hp != 0 or play2.hp != 0: print("Player1. what do you want to attack with?") t.sleep(2) print(f"1. Bomb. You have {str(play1.Bomb().many)} bombs and the damage is {str(play1.Bomb().dmg)}.") t.sleep(3) print(f"2. Airstrikes. You have {str(play1.Airstrikes().many)} airstrikes and the damage is {str(play1.Airstrikes().dmg)}") attack = int(input("Enter here a number... ")) if attack == 1: play2.hp-=play1.Bomb().dmg play1.Bomb().many-=1 print(play1.Bomb().many) elif attack == 2: pass print("No no. An INTEGER. I mean a whole number.") attack = int(input("Enter here a number... "))

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