online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
''' Welcome to GDB Online. GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl, C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog. Code, Compile, Run and Debug online from anywhere in world. ''' from random import randint player=input('You go first. Type r for rock, p for paper, s for scissors, l for lizard or k for Spock, then press return.') if player == 'r': print('rock', end=' ') player = 1 if player == 'p': print('paper', end=' ') player = 2 if player == 's': print(':scissors', end=' ') player = 3 if player == 'l': print('lizard', end=' ') player = 5 if player == 'k': print('Spock', end=' ') player = 4 print('v', end=' ') chosen=randint(1,5) if chosen==1: print('rock') elif chosen==2: print('paper') elif chosen==3: print('scissors') elif chosen==4: print('Spock') elif chosen==5: print('lizard') result = player-chosen if result in [0]: print('Draw.') if result in [-1, -3, 2, 4]: print('Computer wins.') if result in [-2, -4, 1, 3]: print('You win!')

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