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. ''' def win_or_lose(c,p): if(c=='r' and p=='s'): return 1 elif(c=='s' and p=='p'): return 1 elif(c=='p' and p=='r'): return 1 elif(p=='r' and c=='s'): return 0 elif(p=='s' and c=='p'): return 0 elif(p=='p' and c=='r'): return 0 else: return -1 import random l=['r','p','s'] name=input('Enter name\n') s=int(input("Enter the number of points game you want to play\n")) ppoints=0 cpoints=0 while(ppoints!=s or cpoints!=s): p=input("Enter rock , paper or scissor as r or p or s\n") p=p[0].lower(); while p not in l: print('Enter valid choice') p=input("Enter rock , paper or scissor\n") p=p[0].lower(); random.shuffle(l) c=l[0] x=win_or_lose(c,p) if(x==0): cpoints+=1 print(f'I get a point\n{name}-{ppoints}\nMe-{cpoints}') if cpoints==s: print(f'{name} lost better luck next time') break elif(x==1): ppoints+=1 print(f'{name} gets a point\n{name}-{ppoints}\nMe-{cpoints}') if ppoints==s: print(f'{name} won') break else: print(f'None gets the point\n{name}-{ppoints}\nMe-{cpoints}')

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