online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
inv = {'rope': 1, '劍': 1, 'gold coin': 42, 'dagger': 1, 'arrow': 1} # 倉庫 dragonLoot = ['θΆ…η΄šεŠ', 'gold coin', 'arrow'] def addInventory(inventory, addItems): for item in addItems: if item in inventory: inventory[item] += 1 else: inventory[item] = 1 return inventory def diplayInventory(inventory): # ι‘―η€Ίε­—ε…Έη”¨ηš„ε‡½ζ•Έ print("Inventory:") for k, v in inventory.items(): print(f"{v} {k}") print("items number:", len(inventory)) addInventory(inv, dragonLoot) diplayInventory(inv)

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