online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
import random class Platform: countOfPlatforms = 10 def __init__(self, x, y): self.position = [] self.setPos(x, y) 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 platformObjects = list(map(lambda _: Platform(random.randrange(0, WIDTH), random.randrange(0, HEIGHT)), range(Platform.countOfPlatforms))) for platform in platformObjects: # print(platform.pos()) 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