online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
import random class Platform: def __init__(self, x, y): self.position = [] self.setPos(x, y) def __str__(self): return f"{self.position}" def setPos(self, x, y): self.position = [x, y] def pos(self): return [self.position[0], self.position[1]] def x(self): return self.pos()[0] def y(self): return self.pos()[1] WIDTH = 400 HEIGHT = 533 countOfPlatforms = 10 platformObjects = list(map(lambda _: Platform(random.randrange(0, WIDTH), random.randrange(0, HEIGHT)), range(countOfPlatforms))) for platform in platformObjects: print(f"{str(platform.pos()):12}", platform)

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