s_id string | p_id string | u_id string | date string | language string | original_language string | filename_ext string | status string | cpu_time string | memory string | code_size string | code string | error string | stdout string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s960491276 | p02401 | u520674325 | 1559023972 | Python | Python3 | py | Runtime Error | 0 | 0 | 217 | while True:
a, op, b = input().split()
a = int(a)
b = int(b)
if op == '?':
break
if op == '+':
ans = a + b
elif op == '-':
ans = a-b
elif op == '*':
ans = a*b
else op == '/':
ans = a/b
print(ans)
| File "/tmp/tmp0z2hn336/tmpzdyszntx.py", line 14
else op == '/':
^^
SyntaxError: expected ':'
| |
s716848207 | p02401 | u142359205 | 1559056007 | Python | Python3 | py | Runtime Error | 0 | 0 | 276 | while(true):
a, op, b = input().split()
if(op == '+'):
print(int(a) + int(b))
elif(op == '-'):
print(int(a) - int(b))
elif(op == '*'):
print(int(a) * int(b))
elif(op == '/'):
print(int(a) // int(b))
else:
break
| Traceback (most recent call last):
File "/tmp/tmp8izinxj8/tmpl83tcq60.py", line 1, in <module>
while(true):
^^^^
NameError: name 'true' is not defined. Did you mean: 'True'?
| |
s999328589 | p02401 | u015712946 | 1559525223 | Python | Python3 | py | Runtime Error | 0 | 0 | 231 | while True:
a,op,c = map(str, input().split())
a = int(a)
c = int(b)
if op == '?':
break
if op == '+':
print(a+b)
if op == '-':
print(a-b)
if op == '*':
print(a*b)
if op == '/':
print(a//b)
| Traceback (most recent call last):
File "/tmp/tmpgae8abax/tmpy962cdfl.py", line 2, in <module>
a,op,c = map(str, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s238885838 | p02401 | u015712946 | 1559525341 | Python | Python3 | py | Runtime Error | 0 | 0 | 226 | while True:
a,op,c = map(str, input().split())
a = int(a)
c = int()
if op == '?':
break
if op == '+':
print(a+b)
if op == '-':
print(a-b)
if op == '*':
print(a*b)
if op == '/':
print(a//b)
| Traceback (most recent call last):
File "/tmp/tmpltq8cu7_/tmpseip8ffb.py", line 2, in <module>
a,op,c = map(str, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s510602729 | p02401 | u015712946 | 1559525357 | Python | Python3 | py | Runtime Error | 0 | 0 | 227 | while True:
a,op,c = map(str, input().split())
a = int(a)
c = int(c)
if op == '?':
break
if op == '+':
print(a+b)
if op == '-':
print(a-b)
if op == '*':
print(a*b)
if op == '/':
print(a//b)
| Traceback (most recent call last):
File "/tmp/tmp4dhudrsa/tmpositsoo6.py", line 2, in <module>
a,op,c = map(str, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s199034057 | p02401 | u015712946 | 1559525385 | Python | Python3 | py | Runtime Error | 0 | 0 | 227 | while True:
a,op,c = map(str, input().split())
a = int(a)
b = int(b)
if op == '?':
break
if op == '+':
print(a+b)
if op == '-':
print(a-b)
if op == '*':
print(a*b)
if op == '/':
print(a//b)
| Traceback (most recent call last):
File "/tmp/tmpd7nxos8h/tmpfzibyy3_.py", line 2, in <module>
a,op,c = map(str, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s196700458 | p02401 | u408260374 | 1414671152 | Python | Python | py | Runtime Error | 0 | 0 | 220 |
while true:
a,op,b = raw_input().split
if op == '?':
break
elif op == '+':
print int(a) + int(b)
elif op == '-':
print int(a) - int(b)
elif op == '*':
print int(a) * int(b)
else:
print int(a) / int(b)
| File "/tmp/tmpg8_wg5p0/tmpo_m1796u.py", line 7
print int(a) + int(b)
^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s757870602 | p02401 | u408260374 | 1414671289 | Python | Python | py | Runtime Error | 0 | 0 | 219 |
while true:
a,op,b = raw_input().split()
if op == '?':
break
elif op == '+':
print int(a) + int(b)
elif op == '-':
print int(a) - int(b)
elif op == '*':
print int(a) * int(b)
else:
print int(a) / int(b) | File "/tmp/tmp66i4s7ah/tmpsqocu7c3.py", line 7
print int(a) + int(b)
^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s971785949 | p02401 | u567380442 | 1419933543 | Python | Python3 | py | Runtime Error | 0 | 0 | 208 | import sys, operator
list = {'+':operator.add, '-':operator.sub, '*':operator.mul, '/':operator.div}
for line in sys.stdin:
a, op, b = line.split()
if op == '?': break
print(int(list[op](a, b))) | Traceback (most recent call last):
File "/tmp/tmpvwwijwo4/tmpw86tklq_.py", line 3, in <module>
list = {'+':operator.add, '-':operator.sub, '*':operator.mul, '/':operator.div}
^^^^^^^^^^^^
AttributeError: module 'operator' has no attribute 'div'... | |
s655215995 | p02401 | u813534019 | 1420764523 | Python | Python | py | Runtime Error | 10 | 4188 | 94 | while True:
_exp = raw_input()
if _exp == "0 ? 0":
break
print(eval(_exp)) | Traceback (most recent call last):
File "/tmp/tmp04l3by4h/tmp_rmdf0q3.py", line 2, in <module>
_exp = raw_input()
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s586808086 | p02401 | u193599711 | 1422410812 | Python | Python3 | py | Runtime Error | 0 | 0 | 214 | a op b = (str(i) for i in input().split())
if op == '+':print(int(a) + int(b))
if op == '-':print(int(a) - int(b))
if op == '*':print(int(a) * int(b))
if op == '/':print(int(a) / int(b))
else:print(int(a) % int(b)) | File "/tmp/tmpscyd3ojf/tmpmmmhidtu.py", line 1
a op b = (str(i) for i in input().split())
^^
SyntaxError: invalid syntax
| |
s531890653 | p02401 | u193599711 | 1422411190 | Python | Python3 | py | Runtime Error | 0 | 0 | 274 | a, op, b = (str(i) for i in input().split())
if op != '?':
if op == '+':print(int(a) + int(b))
if op == '-':print(int(a) - int(b))
if op == '*':print(int(a) * int(b))
if op == '/' and int(a) % int(b) == 0:print(int(a) // int(b))
else:print(int(a) % int(b))
else:
break | File "/tmp/tmphmqn0bgx/tmpxnj7e9zg.py", line 9
break
^^^^^
SyntaxError: 'break' outside loop
| |
s755178512 | p02401 | u297342993 | 1422414378 | Python | Python3 | py | Runtime Error | 0 | 0 | 265 | while True:
result = 0
i = input().split()
if i[1] == '+':
result = int(i[0]) + int(i[2])
elif i[1] == '-':
result = int(i[0]) - int(i[2])
elif i[1] == '*':
result = int(i[0]) * int(i[2])
elif i[1] == '/':
result = int(i[0]) / int(i[2])
print(result) | Traceback (most recent call last):
File "/tmp/tmplijg4ekm/tmpg5151iny.py", line 3, in <module>
i = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s669930054 | p02401 | u297342993 | 1422414491 | Python | Python3 | py | Runtime Error | 0 | 0 | 281 | while True:
result = 0
i = input().split()
if i[1] == '+':
result = int(i[0]) + int(i[2])
elif i[1] == '-':
result = int(i[0]) - int(i[2])
elif i[1] == '*':
result = int(i[0]) * int(i[2])
elif i[1] == '/':
result = int(i[0]) / int(i[2])
print('{0}\n'.format(result)) | Traceback (most recent call last):
File "/tmp/tmp455huw6o/tmpcani96p9.py", line 3, in <module>
i = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s324699449 | p02401 | u823030818 | 1422414521 | Python | Python3 | py | Runtime Error | 0 | 0 | 371 | while True:
i = input().split()
result = 0
if i[1] == '+':
result = int(i[0]) + int(i[2])
elif i[1] == '-':
result = int(i[0]) - int(i[2])
elif i[1] == '* ':
result = int(i[0]) * int(i[2])
elif i[1] = ' / ':
result = int(i[0]) / int(i[2])
else i[1] = ' ? ':
... | File "/tmp/tmpbn46fzty/tmpb1b5_dwe.py", line 10
elif i[1] = ' / ':
^^^^
SyntaxError: cannot assign to subscript here. Maybe you meant '==' instead of '='?
| |
s570870024 | p02401 | u297342993 | 1422414562 | Python | Python3 | py | Runtime Error | 0 | 0 | 266 | while True:
result = 0
i = input().split()
if i[1] == '+':
result = int(i[0]) + int(i[2])
elif i[1] == '-':
result = int(i[0]) - int(i[2])
elif i[1] == '*':
result = int(i[0]) * int(i[2])
elif i[1] == '/':
result = int(i[0]) // int(i[2])
print(result) | Traceback (most recent call last):
File "/tmp/tmp63c9r8ql/tmprvy930xe.py", line 3, in <module>
i = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s219281222 | p02401 | u745846646 | 1422842596 | Python | Python3 | py | Runtime Error | 0 | 0 | 246 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print()
elif op = '-':
print()
elif op = '*':
print()
elif op = '/':
print() | File "/tmp/tmp6tvrsc4d/tmpdi7uur__.py", line 6
if op = '?':
^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s683976057 | p02401 | u442346200 | 1422842637 | Python | Python3 | py | Runtime Error | 0 | 0 | 267 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print(a + b)
elif op = '-':
print(a - b)
elif op = '*':
print(a * b)
elif op = '/':
print(a // b) | File "/tmp/tmp2le8p9iq/tmp8847favj.py", line 6
if op = '?':
^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s388321310 | p02401 | u636711749 | 1422842698 | Python | Python3 | py | Runtime Error | 0 | 0 | 264 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print()
elif op = '-':
print()
elif op = '*':
print()
elif op = '/':
print() | File "/tmp/tmptul8ghgi/tmp3b1wgmus.py", line 6
if op = '?':
^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s154656193 | p02401 | u527848444 | 1422842849 | Python | Python3 | py | Runtime Error | 0 | 0 | 270 | While True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print(a + b)
elif op = '-':
print(a - b)
elif op = '*':
print(a * b)
elif op = '/':
print(a / b) | File "/tmp/tmpeykzgcxo/tmpwiepi3vj.py", line 1
While True:
^^^^
SyntaxError: invalid syntax
| |
s136263574 | p02401 | u636711749 | 1422842862 | Python | Python3 | py | Runtime Error | 0 | 0 | 308 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print()
elif op = '-':
print()
elif op = '*':
print()
elif op = '/':
print() | File "/tmp/tmpixvitvuz/tmpoej996u6.py", line 6
if op = '?':
^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s259999073 | p02401 | u745846646 | 1422842968 | Python | Python3 | py | Runtime Error | 0 | 0 | 267 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print(a + b)
elif op = '-':
print(a - b)
elif op = '*':
print(a * b)
elif op = '/':
print(a / b) | File "/tmp/tmplbznlcid/tmpt6td2w1_.py", line 6
if op = '?':
^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s621218564 | p02401 | u636711749 | 1422843428 | Python | Python3 | py | Runtime Error | 0 | 0 | 338 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print(a,op,b)
elif op = '-':
print(a, op, b)
elif op = '*':
print(a, op, b)
elif op = '/':
... | File "/tmp/tmp0ra6lwee/tmpur8ef7xw.py", line 6
if op = '?':
^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s548694309 | p02401 | u442346200 | 1422843556 | Python | Python3 | py | Runtime Error | 0 | 0 | 291 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print(a + b)
elif op = '-':
print(a - b)
elif op = '*':
print(a * b)
elif op = '/':
print(a // b)
else:
break | File "/tmp/tmpayr7mol_/tmpkzsksob0.py", line 6
if op = '?':
^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s563140558 | p02401 | u636711749 | 1422843645 | Python | Python3 | py | Runtime Error | 0 | 0 | 324 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print(True)
elif op = '-':
print(True)
elif op = '*':
print(True)
elif op = '/':
print(T... | File "/tmp/tmpae4aq3xv/tmpd4siaf__.py", line 6
if op = '?':
^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s759492426 | p02401 | u636711749 | 1422843747 | Python | Python3 | py | Runtime Error | 0 | 0 | 328 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print(a + b)
elif op = '-':
print(a - b)
elif op = '*':
print(a * b)
elif op = '/':
prin... | File "/tmp/tmp891u5dq3/tmpi13vaygc.py", line 6
if op = '?':
^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s428314247 | p02401 | u636711749 | 1422844016 | Python | Python3 | py | Runtime Error | 0 | 0 | 328 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print(a + b)
elif op = '-':
print(a - b)
elif op = '*':
print(a * b)
elif op = '/':
prin... | File "/tmp/tmpz988asx6/tmpr_j7k2mz.py", line 6
if op = '?':
^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s628330146 | p02401 | u636711749 | 1422844151 | Python | Python3 | py | Runtime Error | 0 | 0 | 329 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print(a + b)
elif op = '-':
print(a - b)
elif op = '*':
print(a * b)
elif op = '/':
prin... | File "/tmp/tmpvjq8pxpx/tmpzf2quf1l.py", line 6
if op = '?':
^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s084175656 | p02401 | u636711749 | 1422846036 | Python | Python3 | py | Runtime Error | 0 | 0 | 346 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print(a + b)
elif op = '-':
print(a - b)
elif op = '*':
print(a * b)
elif op = '/':
... | File "/tmp/tmpksixzxfj/tmpta_2xsf2.py", line 6
if op = '?':
^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s606685070 | p02401 | u636711749 | 1422846064 | Python | Python3 | py | Runtime Error | 0 | 0 | 325 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print()
elif op = '-':
print()
elif op = '*':
print()
elif op = '/':
print()
... | File "/tmp/tmp6tvu7vrf/tmpmujnevfg.py", line 6
if op = '?':
^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s083898831 | p02401 | u636711749 | 1422846350 | Python | Python3 | py | Runtime Error | 0 | 0 | 333 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print(a + b)
elif op = '-':
print(a - b)
elif op = '*':
print(a * b)
elif op = '/':
... | File "/tmp/tmpjk5untur/tmptvkdph30.py", line 6
if op = '?':
^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s633441362 | p02401 | u636711749 | 1422846495 | Python | Python3 | py | Runtime Error | 0 | 0 | 401 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print(a + b)
elif op = '-':
print(a - b)
elif op = '*':... | File "/tmp/tmps4gzn1dw/tmpwio_i6y2.py", line 6
if op = '?':
^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s778052303 | p02401 | u636711749 | 1422846529 | Python | Python3 | py | Runtime Error | 0 | 0 | 380 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print()
elif op = '-':
print()
elif op = '*':
... | File "/tmp/tmpot9dxjvx/tmpe8c5_7l5.py", line 6
if op = '?':
^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s119398097 | p02401 | u636711749 | 1422846892 | Python | Python3 | py | Runtime Error | 0 | 0 | 380 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print()
elif op = '-':
print()
elif op = '*':
... | File "/tmp/tmprrrumjbq/tmp2zv3vfem.py", line 6
if op = '?':
^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s663034270 | p02401 | u636711749 | 1423446632 | Python | Python3 | py | Runtime Error | 0 | 0 | 267 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op = '?':
break
elif op = '+':
print(a + b)
elif op = '-':
print(a - b)
elif op = '*':
print(a * b)
elif op = '/':
print(a // b) | File "/tmp/tmpw9epsfsk/tmpxi8bl5me.py", line 6
if op = '?':
^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s360880439 | p02401 | u442346200 | 1424048110 | Python | Python3 | py | Runtime Error | 0 | 0 | 309 | from sys import stdin
while True:
(a, op, b) = stdin.readline().split(' ')
a = int(a)
b = int(b)
if op == "?":
break;
elif op == "+":
print(a + b)
elif op == "-":
print(a - b)
elif op == "*":
print(a * b)
elif op == "/":
print(a // b) | File "/tmp/tmp5iajaxyr/tmpvnxwtbqc.py", line 1
from sys import stdin
IndentationError: unexpected indent
| |
s293195275 | p02401 | u281873326 | 1427436298 | Python | Python | py | Runtime Error | 20 | 4220 | 250 | while True:
a=raw_input()
if a == "0 ? 0":
break
b=a.split()
for i,c in enumerate(b):
if i==0:
x=int(c)
elif i==1:
y=c
else:
z=int(c)
if y=='+':
w=x+z
elif y=='-':
w=x-z
elif y=='*':
w=x*z
elif y=='/':
w=x/z
print w | File "/tmp/tmpl4anr1vo/tmpzrv31hje.py", line 21
print w
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s119785730 | p02401 | u281873326 | 1427436430 | Python | Python | py | Runtime Error | 20 | 4216 | 249 | while True:
a=raw_input()
if a == "0 ? 0":
break
b=a.split()
for i,c in enumerate(b):
if i==0:
x=int(c)
elif i==1:
y=c
else:
z=int(c)
if y=='+':
w=x+z
elif y=='-':
w=x-z
elif y=='*':
w=x*z
elif y=='/':
w=x/z
print w | File "/tmp/tmpoqsyl8nj/tmpstt5mwo7.py", line 21
print w
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s738868905 | p02401 | u669360983 | 1430144278 | Python | Python | py | Runtime Error | 0 | 0 | 189 | while True:
a,b,c=map(str, input().split())
if b=='?':
break
a=int(a)
c=int(c)
if b=='+':
print(a+c)
elif b=='*':
print(a*c)
elif b=='/':
print(int(a/c))
else:
print(a-c) | Traceback (most recent call last):
File "/tmp/tmpv7sbamv8/tmp2vz7t5uk.py", line 2, in <module>
a,b,c=map(str, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s018656843 | p02401 | u669360983 | 1430144335 | Python | Python | py | Runtime Error | 0 | 0 | 195 | while True:
a,b,c=map(str, input().split())
if b=='?':
break
a=int(a)
c=int(c)
if b=='+':
print(a+c)
elif b=='*':
print(a*c)
elif b=='/':
print(int(a/c))
elif b=='-':
print(a-c) | Traceback (most recent call last):
File "/tmp/tmp7qrzqerc/tmppwv20gqd.py", line 2, in <module>
a,b,c=map(str, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s737335157 | p02401 | u669360983 | 1430144428 | Python | Python | py | Runtime Error | 0 | 0 | 195 | while True:
a,b,c=map(str, input().split())
if b=='?':
break
a=int(a)
c=int(c)
if b=='+':
print(a+c)
elif b=='*':
print(a*c)
elif b=='/':
print(int(a/c))
elif b=='-':
print(a-c) | Traceback (most recent call last):
File "/tmp/tmpovxcgozz/tmppf5p2qdg.py", line 2, in <module>
a,b,c=map(str, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s263659352 | p02401 | u669360983 | 1430144614 | Python | Python | py | Runtime Error | 0 | 0 | 195 | while True:
a,b,c=map(str, input().split())
if b=='?':
break
a=int(a)
c=int(c)
if b=='+':
print(a+c)
elif b=='*':
print(a*c)
elif b=='/':
print(int(a/c))
elif b=='-':
print(a-c) | Traceback (most recent call last):
File "/tmp/tmptolp1dda/tmpblf87nxf.py", line 2, in <module>
a,b,c=map(str, input().split())
^^^^^^^
EOFError: EOF when reading a line
| |
s938586240 | p02401 | u682755774 | 1431811964 | Python | Python | py | Runtime Error | 0 | 0 | 217 | #coding:UTF-8
a,op,b = map(str,raw_input().split())
a = int(a)
b = int(b)
if op == '+':
print a + b
elif op == '-':
print a - b
elif op == '*':
print a * b
elif op == '/':
print a / b
else:
break | File "/tmp/tmpe51joinl/tmpi3764bj7.py", line 8
print a + b
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s888102008 | p02401 | u682755774 | 1431812059 | Python | Python | py | Runtime Error | 0 | 0 | 270 | #coding:UTF-8
a,op,b = map(str,raw_input().split())
a = int(a)
b = int(b)
while True:
if op == '+':
print a + b
elif op == '-':
print a - b
elif op == '*':
print a * b
elif op == '/':
print a / b
else:
break: | File "/tmp/tmpxvg10pd4/tmpsazvasw7.py", line 9
print a + b
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s866069256 | p02401 | u682755774 | 1431812251 | Python | Python | py | Runtime Error | 0 | 0 | 265 | #coding:UTF-8
a,op,b = map(raw_input().split())
a = int(a)
b = int(b)
while True:
if op == '+':
print a + b
elif op == '-':
print a - b
elif op == '*':
print a * b
elif op == '/':
print a / b
else:
break | File "/tmp/tmpqs4bh2hp/tmpi4j22jg9.py", line 9
print a + b
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s126797079 | p02401 | u682755774 | 1431812285 | Python | Python | py | Runtime Error | 0 | 0 | 260 | #coding:UTF-8
a,op,b = map(int,raw_input().split())
op = str(op)
while True:
if op == '+':
print a + b
elif op == '-':
print a - b
elif op == '*':
print a * b
elif op == '/':
print a / b
else:
break | File "/tmp/tmpiv7utx57/tmprjn8826s.py", line 8
print a + b
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s185325520 | p02401 | u682755774 | 1431812790 | Python | Python | py | Runtime Error | 0 | 0 | 283 | #coding:UTF-8
while True:
a,op,b = map(str,raw_input().split())
a = int(a)
b = int(b)
if op == '+':
print a + b
elif op == '-':
print a - b
elif op == '*':
print a * b
elif op == '/':
print a / b
else:
continue | File "/tmp/tmpbqtb382n/tmpsftk77mv.py", line 8
print a + b
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s741871187 | p02401 | u777299405 | 1434004003 | Python | Python3 | py | Runtime Error | 0 | 0 | 152 | while True:
a, op, b = map(str, raw_input().split())
if op == "?":
break
if op == "/":
op = "//"
print(eval(a + op + b)) | Traceback (most recent call last):
File "/tmp/tmpkavgyvnd/tmp_k4b3w77.py", line 2, in <module>
a, op, b = map(str, raw_input().split())
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s025456925 | p02401 | u777299405 | 1434004034 | Python | Python3 | py | Runtime Error | 0 | 0 | 174 | while True:
a, op, b = map(str, raw_input().split())
if op == "?":
break
if op == "/":
op = "//"
formula = a + op + b
print(eval(formula)) | Traceback (most recent call last):
File "/tmp/tmp16tfrjtw/tmplc4hoy6k.py", line 2, in <module>
a, op, b = map(str, raw_input().split())
^^^^^^^^^
NameError: name 'raw_input' is not defined
| |
s647530861 | p02401 | u777299405 | 1434004489 | Python | Python3 | py | Runtime Error | 0 | 0 | 85 | while True:
s = input()
if '?' in data:
break
print(int(eval(s))) | Traceback (most recent call last):
File "/tmp/tmp7ii7b3wg/tmp4rppe76_.py", line 2, in <module>
s = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s035885193 | p02401 | u172616925 | 1435422888 | Python | Python | py | Runtime Error | 0 | 0 | 215 | def cal(a, op, b)
if op == '+':
a + b
elif op == '-':
a + b
elif op == '*':
a * b
elif op == '/':
a / b
while 1:
a,op,b = raw_input().split()
if op == '?':
break
else:
cal(int(a), op, int(b)) | File "/tmp/tmphd4q7q1r/tmp3ilzk2_v.py", line 1
def cal(a, op, b)
^
SyntaxError: expected ':'
| |
s789340753 | p02401 | u172616925 | 1435422951 | Python | Python | py | Runtime Error | 0 | 0 | 258 | def cal(a, op, b):
if op == '+':
r = a + b
elif op == '-':
r = a + b
elif op == '*':
r = a * b
elif op == '/':
r = a / b
while 1:
a,op,b = raw_input().split()
if op == '?':
break
else:
cal(int(a), op, int(b))
print r | File "/tmp/tmpbyqzgdhz/tmpsqchlroa.py", line 18
print r
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s759974459 | p02401 | u172616925 | 1435422991 | Python | Python | py | Runtime Error | 0 | 0 | 260 | def cal(a, op, b):
if op == '+':
r = a + b
elif op == '-':
r = a + b
elif op == '*':
r = a * b
elif op == '/':
r = a / b
while 1:
a,op,b = raw_input().split()
if op == '?':
break
else:
cal(int(a), op, int(b))
print r | File "/tmp/tmpmojdjyzw/tmp5m4a9ggy.py", line 18
print r
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s135017523 | p02401 | u172616925 | 1435423049 | Python | Python | py | Runtime Error | 0 | 0 | 263 | def cal(a, op, b):
if op == '+':
r = a + b
elif op == '-':
r = a + b
elif op == '*':
r = a * b
else:
r = a / b
return r
while 1:
a,op,b = raw_input().split()
if op == '?':
break
else:
cal(int(a), op, int(b))
print r | File "/tmp/tmpw6dc75ff/tmpfcq3l7zw.py", line 19
print r
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s443901526 | p02401 | u172616925 | 1435423116 | Python | Python | py | Runtime Error | 0 | 0 | 261 | def cal(a, op, b):
if op == '+':
r = a + b
elif op == '-':
r = a + b
elif op == '*':
r = a * b
else:
r = a / b
return r
while 1:
a,op,b = raw_input().split()
if op == '?':
break
else:
cal(int(a), op, int(b))
print r | File "/tmp/tmp09r9fakn/tmpo7dww6g9.py", line 19
print r
^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s424704470 | p02401 | u609407244 | 1436077100 | Python | Python3 | py | Runtime Error | 30 | 6728 | 83 | while 1:
t = input()
if t == '0 ? 0':
break
print(int(eval(t))) | Traceback (most recent call last):
File "/tmp/tmpzxwdri_x/tmps8dqoz4q.py", line 2, in <module>
t = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s008935984 | p02401 | u609407244 | 1436077176 | Python | Python3 | py | Runtime Error | 30 | 6728 | 83 | while 1:
t = input()
if t == '0 ? 0':
break
print(int(eval(t))) | Traceback (most recent call last):
File "/tmp/tmp0xvn9dxm/tmplvq537gb.py", line 2, in <module>
t = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s242981712 | p02401 | u713218261 | 1437959247 | Python | Python3 | py | Runtime Error | 0 | 0 | 382 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op == '?':
break
elif op == '+':
print(a + b)
elif op == '-':
print(a - b)
elif op == '*':
print(a * b)
elif op == '/':
print(a // b)
~ ... | File "/tmp/tmp6s3r26n5/tmp0ra6ag5_.py", line 15
~
^
SyntaxError: invalid syntax
| |
s861323959 | p02401 | u713218261 | 1437959331 | Python | Python3 | py | Runtime Error | 0 | 0 | 386 | while True:
(a, op, b) = input().split()
a = int(a)
b = int(b)
if op == '?':
break
elif op == '+':
print(a + b)
elif op == '-':
print(a - b)
elif op == '*':
print(a * b)
elif op == '/':
print(int(a / b))
~ ... | File "/tmp/tmpw6mgj_mw/tmp739q6gsm.py", line 15
~
^
SyntaxError: invalid syntax
| |
s704674946 | p02401 | u713218261 | 1437959600 | Python | Python3 | py | Runtime Error | 0 | 0 | 295 | while True:
(a, op, b) = input().split()
if op == '?':
break
a = int(a)
b = int(b)
elif op == '+':
print(a + b)
elif op == '-':
print(a - b)
elif op == '*':
print(a * b)
elif op == '/':
print(a // b)
~ | File "/tmp/tmplm6j5jqq/tmp28j23yr0.py", line 7
elif op == '+':
^^^^
SyntaxError: invalid syntax
| |
s455334448 | p02401 | u389610071 | 1437959792 | Python | Python3 | py | Runtime Error | 0 | 0 | 362 | While True:
nums= input(),split()
a = int(nums[0])
op = nums[1]
b = int(nums[2])
if op == '?':
break
if op == '+':
i = a + b
print(i)
if op == '-':
i = a - b
print(i)
if op == '*':
i = a * b
print(i)
if op == '/':
i... | File "/tmp/tmpseeyru2y/tmpzh01m2sx.py", line 1
While True:
^^^^
SyntaxError: invalid syntax
| |
s092607724 | p02401 | u389610071 | 1437959971 | Python | Python3 | py | Runtime Error | 0 | 0 | 367 | While True:
nums= input(),split()
a = int(nums[0])
op = int(nums[1])
b = int(nums[2])
if op == '?':
break
if op == '+':
i = a + b
print(i)
if op == '-':
i = a - b
print(i)
if op == '*':
i = a * b
print(i)
if op == '/':
... | File "/tmp/tmp4yeqcipi/tmphsgfg8j7.py", line 1
While True:
^^^^
SyntaxError: invalid syntax
| |
s568075338 | p02401 | u389610071 | 1437960105 | Python | Python3 | py | Runtime Error | 0 | 0 | 290 | While True:
nums= input(),split()
a = int(nums[0])
op = nums[1]
b = int(nums[2])
if op == '?':
break
if op == '+':
print(a + b)
if op == '-':
print(a - b)
if op == '*':
print(a * b)
if op == '/':
print(a // b) | File "/tmp/tmp386n8bgd/tmpj_pqtdiz.py", line 1
While True:
^^^^
SyntaxError: invalid syntax
| |
s174698211 | p02401 | u389610071 | 1437960168 | Python | Python3 | py | Runtime Error | 0 | 0 | 298 | While True:
nums= input().split()
a = int(nums[0])
op = nums[1]
b = int(nums[2])
if op == '?':
break
elif op == '+':
print(a + b)
elif op == '-':
print(a - b)
elif op == '*':
print(a * b)
elif op == '/':
print(a // b) | File "/tmp/tmpkmchdf_u/tmpr23tzusq.py", line 1
While True:
^^^^
SyntaxError: invalid syntax
| |
s435405534 | p02401 | u389610071 | 1437960267 | Python | Python3 | py | Runtime Error | 0 | 0 | 268 | While True:
(a, op, b) = input().split()
int(a)
int(b)
if op == '?':
break
elif op == '+':
print(a + b)
elif op == '-':
print(a - b)
elif op == '*':
print(a * b)
elif op == '/':
print(a // b) | File "/tmp/tmp_a9fkhp9/tmp4xphb3ec.py", line 1
While True:
^^^^
SyntaxError: invalid syntax
| |
s995679635 | p02401 | u389610071 | 1437960350 | Python | Python3 | py | Runtime Error | 0 | 0 | 274 | While True:
(a, op, b) = input().split()
a =int(a)
b =int(b)
if op == '?':
break
elif op == '+':
print(a + b)
elif op == '-':
print(a - b)
elif op == '*':
print(a * b)
elif op == '/':
print(a // b) | File "/tmp/tmp4xw_gk_5/tmpk1_3i5bs.py", line 1
While True:
^^^^
SyntaxError: invalid syntax
| |
s436275664 | p02401 | u447630054 | 1437961188 | Python | Python3 | py | Runtime Error | 0 | 0 | 431 | while True:
(a, op, b) = [int(i) if i.isdigit() else i for i in input().split()]
if op == '?':
break
elif op =='+':
print(a+b)
elif op == '-':
print(a-b)
elif op == '*':
print(a*b)
... | File "/tmp/tmputma4mpo/tmpjv1otnx3.py", line 1
while True:
IndentationError: unexpected indent
| |
s273314616 | p02401 | u255164080 | 1439772701 | Python | Python3 | py | Runtime Error | 0 | 0 | 237 | while True:
(a, op, b) = [int(i) if i.isdigit() else i for i in input().split()]
if op == '?':
break
elif op =='+':
print(a + b)
elif op == '-':
print(a - b)
elif op == '*':
print(a * b)
elif op == '/':
print(a // b) | File "/tmp/tmpwdciphx4/tmpzqpox2c3.py", line 2
(a, op, b) = [int(i) if i.isdigit() else i for i in input().split()]
^
IndentationError: expected an indented block after 'while' statement on line 1
| |
s686645924 | p02401 | u255164080 | 1439772820 | Python | Python3 | py | Runtime Error | 0 | 0 | 217 | while True:
(a, op, b) = [int(i) if i.isdigit() else i for i in input().split()]
if op == '?':
break
elif op =='+':
print(a + b)
elif op == '-':
print(a - b)
elif op == '*':
print(a * b)
elif op == '/':
print(a // b) | File "/tmp/tmpxk5mzo8s/tmpwv2mwlvq.py", line 2
(a, op, b) = [int(i) if i.isdigit() else i for i in input().split()]
^
IndentationError: expected an indented block after 'while' statement on line 1
| |
s743705327 | p02401 | u255164080 | 1439772988 | Python | Python3 | py | Runtime Error | 0 | 0 | 237 | while True:
(a, op, b) = [int(i) if i.isdigit() else i for i in input().split()]
if op == '?':
break
elif op =='+':
print(a + b)
elif op == '-':
print(a - b)
elif op == '*':
print(a * b)
else op == '/':
print(a // b) | File "/tmp/tmpye2io0f1/tmpfksjvq7w.py", line 2
(a, op, b) = [int(i) if i.isdigit() else i for i in input().split()]
^
IndentationError: expected an indented block after 'while' statement on line 1
| |
s041485934 | p02401 | u255164080 | 1439773008 | Python | Python3 | py | Runtime Error | 0 | 0 | 217 | while True:
(a, op, b) = [int(i) if i.isdigit() else i for i in input().split()]
if op == '?':
break
elif op =='+':
print(a + b)
elif op == '-':
print(a - b)
elif op == '*':
print(a * b)
else op == '/':
print(a // b) | File "/tmp/tmp6hwdoqx_/tmpagqjtxmw.py", line 2
(a, op, b) = [int(i) if i.isdigit() else i for i in input().split()]
^
IndentationError: expected an indented block after 'while' statement on line 1
| |
s579573250 | p02401 | u473077745 | 1439857748 | Python | Python3 | py | Runtime Error | 0 | 0 | 274 | while True:
(a, op, b) = [int(i) if i.isdigit() else i for i in input()]
if op == '?':
break
elif op == '+':
print(a + b)
elif op == '-':
print(a - b)
elif op == '*':
print(a * b)
elif op == '/':
print(a // b) | Traceback (most recent call last):
File "/tmp/tmp0vi5dh1y/tmpkzu3rzxe.py", line 2, in <module>
(a, op, b) = [int(i) if i.isdigit() else i for i in input()]
^^^^^^^
EOFError: EOF when reading a line
| |
s330902109 | p02401 | u473077745 | 1439858289 | Python | Python3 | py | Runtime Error | 0 | 0 | 202 | while True:
(H, W) = [int(i) for i in input().split()]
if H == W == 0:
break
for a in range(H):
for b in range(w):
print('#', end='')
print()
print() | Traceback (most recent call last):
File "/tmp/tmp3a4n0p4i/tmpzfgoogls.py", line 2, in <module>
(H, W) = [int(i) for i in input().split()]
^^^^^^^
EOFError: EOF when reading a line
| |
s466575478 | p02401 | u782850731 | 1440939355 | Python | Python3 | py | Runtime Error | 30 | 7428 | 181 | (lambda *_: None)(*map(print,
map(eval,
map(lambda s: s.replace('/', '//'),
iter(input, '0 ? 0'))))) | Traceback (most recent call last):
File "/tmp/tmpy_9qwlkq/tmpyjyu_ej6.py", line 1, in <module>
(lambda *_: None)(*map(print,
EOFError: EOF when reading a line
| |
s831652367 | p02401 | u782850731 | 1440939378 | Python | Python3 | py | Runtime Error | 20 | 7408 | 181 | (lambda *_: None)(*map(print,
map(eval,
map(lambda s: s.replace('/', '//'),
iter(input, '0 ? 0'))))) | Traceback (most recent call last):
File "/tmp/tmpjpyok67_/tmpnkffgxx7.py", line 1, in <module>
(lambda *_: None)(*map(print,
EOFError: EOF when reading a line
| |
s097709555 | p02401 | u782850731 | 1440939554 | Python | Python3 | py | Runtime Error | 0 | 0 | 280 | from itertools import takewhile
(lambda *_: None)(*map(print,
map(eval,
map(lambda s: s.replace('/', '//'),
takewhile(lambda s: '?' not in s,
iter(input)))))) | Traceback (most recent call last):
File "/tmp/tmpst907x4c/tmpjm72fms9.py", line 6, in <module>
iter(input))))))
^^^^^^^^^^^
TypeError: 'builtin_function_or_method' object is not iterable
| |
s165145281 | p02401 | u782850731 | 1440939688 | Python | Python3 | py | Runtime Error | 0 | 0 | 283 | from itertools import takewhile
(lambda *_: None)(*map(print,
map(eval,
map(lambda s: s.replace('/', '//'),
takewhile(lambda s: '?' not in s,
iter(input, ''))))) | File "/tmp/tmp7zi1ds2j/tmpd56se4b1.py", line 2
(lambda *_: None)(*map(print,
^
SyntaxError: '(' was never closed
| |
s716321636 | p02401 | u180914582 | 1443514194 | Python | Python3 | py | Runtime Error | 0 | 0 | 124 | while True:
????????data = input()
????????if '?' in data:
????????????????break
????????print(eval(data.replace('/','//'))) | File "/tmp/tmp69hoe71a/tmpan8chcgp.py", line 2
????????data = input()
^
IndentationError: expected an indented block after 'while' statement on line 1
| |
s822893476 | p02401 | u529272062 | 1447079168 | Python | Python | py | Runtime Error | 10 | 6312 | 71 | while 1:
l=raw_input()
if l.find("?")==2:
break
print eval(l) | File "/tmp/tmpvhsqfdfi/tmpvqm3uka9.py", line 5
print eval(l)
^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s210868836 | p02401 | u982632052 | 1449240732 | Python | Python3 | py | Runtime Error | 40 | 7304 | 88 | while True:
s = input()
if (s == '0 ? 0'):
break
print(int(eval(s))) | Traceback (most recent call last):
File "/tmp/tmp5nwabdle/tmp7hi7m5ao.py", line 2, in <module>
s = input()
^^^^^^^
EOFError: EOF when reading a line
| |
s435610048 | p02401 | u297949443 | 1449931402 | Python | Python | py | Runtime Error | 0 | 0 | 271 | import sys
for v in sys.stdin
a,op,b = v.split()
a = int(a)
b = int(b)
if op == '+':
print(a+b)
elif op == '-':
print(a-b)
elif op == '*':
print(a*b)
elif op == '/':
print(a/b)
elif op == '?':
break | File "/tmp/tmp1seue0y3/tmpnv6285uw.py", line 3
for v in sys.stdin
^
SyntaxError: expected ':'
| |
s860879398 | p02401 | u297949443 | 1449931598 | Python | Python | py | Runtime Error | 0 | 0 | 286 | import sys
for v in iter(sys.stdin.readline)
a,op,b = v.split()
a = int(a)
b = int(b)
if op == '+':
print(a+b)
elif op == '-':
print(a-b)
elif op == '*':
print(a*b)
elif op == '/':
print(a/b)
elif op == '?':
break | File "/tmp/tmpg72dkcnx/tmpny_yotun.py", line 3
for v in iter(sys.stdin.readline)
^
SyntaxError: expected ':'
| |
s599927740 | p02401 | u630546605 | 1450232185 | Python | Python | py | Runtime Error | 0 | 0 | 381 | #-------------------------------------------------------------------------------
# coding: utf-8
# Created:
import sys
op = { "+" : lambda x, y: x + y,
"-": lambda x,y: x - y,
"/": lambda x,y: x/y,
"*": lambda x,y: x*y }
while True:
a, op_, b = sys.readline().split()
if op_ == "?" :... | File "/tmp/tmpvlhfppr0/tmpxzk_xv6z.py", line 16
print op[op_](a1, b1)
^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s354796112 | p02401 | u630546605 | 1450232221 | Python | Python | py | Runtime Error | 0 | 0 | 381 | #-------------------------------------------------------------------------------
# coding: utf-8
# Created:
import sys
op = { "+" : lambda x, y: x + y,
"-": lambda x,y: x - y,
"/": lambda x,y: x/y,
"*": lambda x,y: x*y }
while True:
a, op_, b = sys.readline().split()
if op_ == "?" :... | File "/tmp/tmp5v598776/tmpwv51nlg6.py", line 16
print op[op_](a1, b1)
^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s939613881 | p02401 | u279955105 | 1450512857 | Python | Python3 | py | Runtime Error | 20 | 7696 | 259 | while True:
t = input().split()
a = int(t[0])
b = t[1]
c = int(t[2])
d = 0
if (a == 0 and b == "?" and c == 0):
break
if (b == "+"):
d = a + c
if (b == "-"):
d = a - c
if (b == "*"):
d = a * c
if (b == "/"):
d = int(a / c)
print(str(d))
| Traceback (most recent call last):
File "/tmp/tmpm3zj9xa2/tmplgmkrkm6.py", line 2, in <module>
t = input().split()
^^^^^^^
EOFError: EOF when reading a line
| |
s040207080 | p02401 | u456885296 | 1453795353 | Python | Python | py | Runtime Error | 0 | 0 | 187 | a,b,op=map(int,raw_input().split())
while 1:
if op = '?':
break
elif op = '+':
print a+b
elif op = '-':
print a-b
elif op = '/':
print a/b
elif op = '*':
print a*b
| File "/tmp/tmp1mzx0kmz/tmp__w18vs9.py", line 4
if op = '?':
^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?
| |
s885062667 | p02401 | u456885296 | 1453795549 | Python | Python | py | Runtime Error | 0 | 0 | 193 | a,b,op=map(int,raw_input().split())
while 1:
if op == '?':
break
elif op == '+':
print a+b
elif op == '-':
print a-b
elif op == '/':
print a/b
elif op == '*':
print a*b
| File "/tmp/tmp3s793xm1/tmpjf8lrt95.py", line 7
print a+b
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s589582118 | p02401 | u456885296 | 1453795589 | Python | Python | py | Runtime Error | 0 | 0 | 193 |
while 1:
a,b,op=map(int,raw_input().split())
if op == '?':
break
elif op == '+':
print a+b
elif op == '-':
print a-b
elif op == '/':
print a/b
elif op == '*':
print a*b
| File "/tmp/tmpyb4kv_5h/tmpqhmblurp.py", line 7
print a+b
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s667890535 | p02401 | u456885296 | 1453795970 | Python | Python | py | Runtime Error | 0 | 0 | 193 |
while 1:
a,op,b=map(int,raw_input().split())
if op == "?":
break
elif op == "+":
print a+b
elif op == "-":
print a-b
elif op == "/":
print a/b
elif op == "*":
print a*b
| File "/tmp/tmp5vb85hwz/tmpowrybkmf.py", line 7
print a+b
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s556299869 | p02401 | u047737909 | 1453859748 | Python | Python | py | Runtime Error | 0 | 0 | 195 | while True:
a,op,b = map(int,raw_input().split())
if(op==*):
x =a*b
print x
elif(op==/):
x=a/b
print x
elif(op==+):
x=a+b
print x
elif(op==-):
x=a-b
print x
else:
break
| File "/tmp/tmpsnzw1nuw/tmp7nc0x72d.py", line 4
if(op==*):
^
SyntaxError: invalid syntax
| |
s747808738 | p02401 | u047737909 | 1453860396 | Python | Python | py | Runtime Error | 0 | 0 | 193 | while True:
a,op,b = map(int,raw_input().split())
if(op=='*'):
print '%d'%(a*b)
elif(op=='/'):
print a/b
elif(op==+):
x=a+b
print x
elif(op==-):
x=a-b
print x
else:
break
| File "/tmp/tmptxzsj6dc/tmp1vy2uow1.py", line 5
print '%d'%(a*b)
^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s014692095 | p02401 | u047737909 | 1453861314 | Python | Python | py | Runtime Error | 0 | 0 | 174 | while True:
a,op,b =map(int,raw_input().split())
if(op=='+'):
print a+b
elif(op=='-'):
print a-b
elif(op=='*'):
print a*b
elif(op=='/'):
print a/b
else:
break | File "/tmp/tmpp_oyt_a3/tmpv1frb0p1.py", line 4
print a+b
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s603935006 | p02401 | u047737909 | 1453861440 | Python | Python | py | Runtime Error | 0 | 0 | 187 | while True:
a =int(input())
op =raw_input()
b =int(input())
if(op=='+'):
print a+b
elif(op=='-'):
print a-b
elif(op=='*'):
print a*b
elif(op=='/'):
print a/b
else:
break | File "/tmp/tmp7t6qug3u/tmpxgvukwb_.py", line 6
print a+b
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s935880209 | p02401 | u047737909 | 1453861461 | Python | Python | py | Runtime Error | 0 | 0 | 177 | while True:
a =input()
op =raw_input()
b =input()
if(op=='+'):
print a+b
elif(op=='-'):
print a-b
elif(op=='*'):
print a*b
elif(op=='/'):
print a/b
else:
break | File "/tmp/tmputaxjca_/tmpph3pb_zp.py", line 6
print a+b
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s055631190 | p02401 | u047737909 | 1453861533 | Python | Python | py | Runtime Error | 0 | 0 | 184 | while True:
a =input()
op =raw_input()
b =input()
if(op=='?'):
break
if(op=='+'):
print a+b
elif(op=='-'):
print a-b
elif(op=='*'):
print a*b
elif(op=='/'):
print a/b | File "/tmp/tmps9m9c00e/tmpbqnuhkfw.py", line 8
print a+b
^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s637486092 | p02401 | u834416077 | 1453861550 | Python | Python | py | Runtime Error | 0 | 0 | 246 | a,b = map(int, raw_input().split())
op = f.read()
while(1):
if op == "+":
print "%d" %(a+b)
elif op == "-":
print "%d" %(a-b)
elif op == "*":
print "%d" %(a*b)
elif op == "/":
print "%d" %(a/b)
elif op == "?":
break | File "/tmp/tmpxrhofghn/tmpzpxz8uzx.py", line 6
print "%d" %(a+b)
^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s287255315 | p02401 | u834416077 | 1453861784 | Python | Python | py | Runtime Error | 0 | 0 | 286 | a,b = map(int, raw_input().split())
op = f.read()
while(1):
if op == "+":
c = a+b
print "%d" %(c)
elif op == "-":
c = a-b
print "%d" %(c)
elif op == "*":
c = a*b
print "%d" %(c)
elif op == "/":
c = a/b
print "%d" %(c)
elif op == "?":
break | File "/tmp/tmpqpfehq2s/tmpqg26e7a6.py", line 7
print "%d" %(c)
^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s589983563 | p02401 | u834416077 | 1453862001 | Python | Python | py | Runtime Error | 0 | 0 | 250 | while(1):
a,b = map(int, raw_input().split())
op = f.read()
if op == "+":
print "%d" %(a+b)
elif op == "-":
print "%d" %(a-b)
elif op == "*":
print "%d" %(a*b)
elif op == "/":
print "%d" %(a/b)
elif op == "?":
break | File "/tmp/tmp8qt3293a/tmpmjrouaqe.py", line 6
print "%d" %(a+b)
^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s753683416 | p02401 | u803327846 | 1453862182 | Python | Python | py | Runtime Error | 0 | 0 | 199 | while 1:
a,op,b = map(raw_input().split())
if op == "+":
print a + b
elif op == "-":
print a - b
elif op == "*":
print a * b
elif op == "/":
print a / b
else:
break
| File "/tmp/tmp7qs83_ek/tmpy3vy9l7t.py", line 4
print a + b
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
| |
s351667198 | p02401 | u803327846 | 1453862244 | Python | Python | py | Runtime Error | 0 | 0 | 203 | while 1:
a,op,b = map(int,raw_input().split())
if op == "+":
print a + b
elif op == "-":
print a - b
elif op == "*":
print a * b
elif op == "/":
print a / b
else:
break
| File "/tmp/tmposoz00sq/tmpxbhqtcjm.py", line 4
print a + b
^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.