alexjercan/bugnet huggingface dataset:
Problem p02388 (Python) — buggy submission, verdict: Runtime Error

x = int(input())
print(x**3)


Error: TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s314503322.py", line 2, in <module>
    print(x**3)
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'


Fixed submission:

x = input()
print(x**3)
Problem p02388 (Python) — buggy submission, verdict: Runtime Error

number = int(input())
print(number**3)


Error: TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s272552751.py", line 2, in <module>
    print(number**3)
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'


Fixed submission:

number = input(int())
print(number**3)
Problem p02388 (Python) — buggy submission, verdict: Runtime Error

x = int(input())

print(x**3)


Error: TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s482874964.py", line 3, in <module>
    print(x**3)
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'


Fixed submission:

x = input()

print(x**3)
Problem p02388 (Python) — buggy submission, verdict: Runtime Error

print(int(input()) ** 3)


Error: TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s627402686.py", line 1, in <module>
    print(input() ** 3)
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'


Fixed submission:

print(input() ** 3)
Problem p02388 (Python) — buggy submission, verdict: Runtime Error

x = input()
x = int(x)
print(x**3)


Error: TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s725747490.py", line 2, in <module>
    print(x**3)
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'


Fixed submission:

x = input()
print(x**3)
Problem p02388 (Python) — buggy submission, verdict: Runtime Error

x = int(input())
print(x**3)


Error: TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s709080194.py", line 2, in <module>
    print(x**3)
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'


Fixed submission:

x = input()
print(x**3)
Problem p02388 (Python) — buggy submission, verdict: Runtime Error

s = input()
n = int(s)
print(n**3)


Error: TypeError: can't multiply sequence by non-int of type 'str'
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s234463127.py", line 2, in <module>
    print(n * n * n)
TypeError: can't multiply sequence by non-int of type 'str'


Fixed submission:

n = input()
print(n * n * n)
Problem p02388 (Python) — buggy submission, verdict: Runtime Error

input = input()
print(int(input) ** 3)


Error: TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s516531505.py", line 2, in <module>
    print(input**3)
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'


Fixed submission:

input = input()
print(input**3)
Problem p02388 (Python) — buggy submission, verdict: Runtime Error

N = int(input())
print(N**3)


Error: TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s645472377.py", line 2, in <module>
    print(N**3)
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'


Fixed submission:

N = input()
print(N**3)
Problem p02388 (Python) — buggy submission, verdict: Runtime Error

x = int(input())
print(x**3)


Error: TypeError: print() argument after ** must be a mapping, not int
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s451360688.py", line 2, in <module>
    print(**3)
TypeError: print() argument after ** must be a mapping, not int


Fixed submission:

x = int(input())
print(**3)
Problem p02388 (Python) — buggy submission, verdict: Runtime Error

x = int(input())
print(x**3)


Error: TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s996581497.py", line 2, in <module>
    print(x**3)
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'


Fixed submission:

x = input()
print(x**3)
Problem p02388 (Python) — buggy submission, verdict: Runtime Error

user = input("")
num = int(user)
ans = num * num * num
print(ans)


Error: TypeError: can't multiply sequence by non-int of type 'str'
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s469089457.py", line 2, in <module>
    ans = s * s * s
TypeError: can't multiply sequence by non-int of type 'str'


Fixed submission:

s = input("")
ans = s * s * s
print(ans)
Problem p02388 (Python) — buggy submission, verdict: Runtime Error

input_1 = int(input())
cal = (input_1) ** 3
print(cal)


Error: TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02388/Python/s257611309.py", line 2, in <module>
    print(x**3)
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'


Fixed submission:

x = input()
print(x**3)
Problem p02389 (Python) — buggy submission, verdict: Runtime Error

a, b = [int(elem) for elem in input().split()]
print(a * b, (a + b) * 2)


Error: TypeError: 'builtin_function_or_method' object is not iterable
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02389/Python/s283815234.py", line 1, in <module>
    a, b = [int(elem) for elem in input().split]
TypeError: 'builtin_function_or_method' object is not iterable


Fixed submission:

a, b = [int(elem) for elem in input().split]
print(a * b, (a + b) * 2)
Problem p02389 (Python) — buggy submission, verdict: Runtime Error

nums = [int(e) for e in input().split()]
x = nums[0] * nums[1]
y = nums[0] * 2 + nums[1] * 2
print(str(x) + " " + str(y))


Error: TypeError: can't multiply sequence by non-int of type 'str'
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02389/Python/s858282912.py", line 2, in <module>
    x = nums[0] * nums[1]
TypeError: can't multiply sequence by non-int of type 'str'


Fixed submission:

nums = input().split()
x = nums[0] * nums[1]
y = nums[0] * 2 + nums[1] * 2
print(str(x) + " " + str(y))
Problem p02389 (Python) — buggy submission, verdict: Runtime Error

n = input()
a, b = n.split()
a = int(a)
b = int(b)
x = a * b
y = 2 * (a + b)
print(x, y)


Error: TypeError: int() argument must be a string, a bytes-like object or a real number, not 'list'
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02389/Python/s485129018.py", line 2, in <module>
    a, b = int(n.split())
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'list'


Fixed submission:

n = input()
a, b = int(n.split())
x = a * b
y = 2 * (a + b)
print(x, y)
Problem p02389 (Python) — buggy submission, verdict: Runtime Error

x = input().split(" ")
a = int(x[0]) * int(x[1])
b = int(x[0]) + int(x[1]) + int(x[0]) + int(x[1])
print(str(a) + " " + str(b))


Error: TypeError: int() argument must be a string, a bytes-like object or a real number, not 'list'
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02389/Python/s525009394.py", line 1, in <module>
    x = int(input().split(" "))
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'list'


Fixed submission:

x = int(input().split(" "))
a = x[0] * x[1]
b = x[0] + x[1] + x[0] + x[1]
print(str(a) + str(b))
Problem p02389 (Python) — buggy submission, verdict: Runtime Error

a, b = map(int, input().split())
print(a * b, 2 * (a + b))


Error: TypeError: 'int' object is not callable
/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02389/Python/s046135584.py:2: SyntaxWarning: 'int' object is not callable; perhaps you missed a comma?
  print(a * b, 2(a + b))
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02389/Python/s046135584.py", line 2, in <module>
    print(a * b, 2(a + b))
TypeError: 'int' object is not callable


Fixed submission:

a, b = map(int, input().split())
print(a * b, 2(a + b))
Problem p02389 (Python) — buggy submission, verdict: Runtime Error

a, b = [int(x) for x in input().split()]

print("{} {}".format(a * b, 2 * a + 2 * b))


Error: 0

Fixed submission:

a, b = [int(x) for x in input().split(" ")]

print("{} {}".format(a * b, 2 * a + 2 * b))
Problem p02389 (Python) — buggy submission, verdict: Runtime Error

nums = list(map(int, input().split(" ")))
area = nums[0] * nums[1]
perimeter = nums[0] * 2 + nums[1] * 2
print(str(area) + " " + str(perimeter))


Error: TypeError: unsupported operand type(s) for +: 'int' and 'str'
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02389/Python/s255812565.py", line 4, in <module>
    print(area + " " + perimeter)
TypeError: unsupported operand type(s) for +: 'int' and 'str'


Fixed submission:

nums = list(map(int, input().split(" ")))
area = nums[0] * nums[1]
perimeter = nums[0] * 2 + nums[1] * 2
print(area + " " + perimeter)
Problem p02389 (Python) — buggy submission, verdict: Runtime Error

a, b = map(int, input().split())
print(str(a * b) + " " + str(2 * a + 2 * b))


Error: AttributeError: 'str' object has no attribute 'splot'. Did you mean: 'split'?
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02389/Python/s991335921.py", line 1, in <module>
    a, b = map(int, input().splot())
AttributeError: 'str' object has no attribute 'splot'. Did you mean: 'split'?


Fixed submission:

a, b = map(int, input().splot())
print(str(a * b) + str(2 * a + 2 * b))
Problem p02390 (Python) — buggy submission, verdict: Runtime Error

time = int(input())
s = time % 60
h = time // 3600
m = (time - h * 3600) // 60
print(str(h) + ":" + str(m) + ":" + str(s))


Error: TypeError: int() argument must be a string, a bytes-like object or a real number, not 'builtin_function_or_method'
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02390/Python/s278670958.py", line 1, in <module>
    time = int(input)
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'builtin_function_or_method'


Fixed submission:

time = int(input)
h = time / 3600
m = (time % 3600) / 60
s = time % 60
print(str(h) + ":" + str(m) + ":" + str(s))
Problem p02390 (Python) — buggy submission, verdict: Runtime Error

x = int(input())
s = x % 60
x //= 60
m = x % 60
x //= 60
print("{}:{}:{}".format(x, m, s))


Error: TypeError: not all arguments converted during string formatting
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02390/Python/s450465833.py", line 2, in <module>
    s = x % 60
TypeError: not all arguments converted during string formatting


Fixed submission:

x = input()
s = x % 60
x //= 60
m = x % 60
x //= 60
print("{}:{}:{}".format(x, m, s))
Problem p02390 (Python) — buggy submission, verdict: Runtime Error

sho, s = divmod(int(input()), 60)
h, m = divmod(sho, 60)
print("{}:{}:{}".format(h, m, s))


Error: EOFError: EOF when reading a line
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02390/Python/s320807078.py", line 2, in <module>
    amari = int(input()) % 60
EOFError: EOF when reading a line


Fixed submission:

sho = int(input()) // 60
amari = int(input()) % 60

h = sho // 60
m = sho % 60
s = amari

print("{}:{}:{}".format(h, m, s))
Problem p02392 (Python) — buggy submission, verdict: Runtime Error

d = input()
a, b, c = map(int, d.split())
if (a < b) and (b < c):
    print("Yes")
else:
    print("No")


Error: TypeError: map() must have at least two arguments.
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02392/Python/s458135705.py", line 2, in <module>
    a, b, c = map(d.split())
TypeError: map() must have at least two arguments.


Fixed submission:

d = input()
a, b, c = map(d.split())

if (a < b) and (b < c):
    print("Yes")
else:
    print("No")
Problem p02392 (Python) — buggy submission, verdict: Runtime Error

a, b, c = map(int, input().split())
if a < b < c:
    print("Yes")
else:
    print("No")


Error: AttributeError: 'builtin_function_or_method' object has no attribute 'split'
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02392/Python/s498567988.py", line 1, in <module>
    a, b, c = map(int, input.split())
AttributeError: 'builtin_function_or_method' object has no attribute 'split'


Fixed submission:

a, b, c = map(int, input.split())
if a < b < c:
    print("Yes")
else:
    print("No")
Problem p02393 (Python) — buggy submission, verdict: Runtime Error

l = list(map(int, input().split()))
l.sort()
print(l[0], l[1], l[2])


Error: TypeError: 'NoneType' object is not iterable
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02393/Python/s939623185.py", line 3, in <module>
    for i in array:
TypeError: 'NoneType' object is not iterable


Fixed submission:

array = input().split().sort()

for i in array:
    print(i, end="")
Problem p02393 (Python) — buggy submission, verdict: Runtime Error

a = list(map(int, input().split()))
a.sort()
print(" ".join(map(str, a)))


Error: TypeError: 'NoneType' object is not iterable
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02393/Python/s980569282.py", line 2, in <module>
    [print(*i) for i in a.sort()]
TypeError: 'NoneType' object is not iterable


Fixed submission:

a = list(map(int, input().split()))
[print(*i) for i in a.sort()]
Problem p02393 (Python) — buggy submission, verdict: Runtime Error

print(*sorted(map(int, input().split())))


Error: AttributeError: 'builtin_function_or_method' object has no attribute 'map'
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02393/Python/s363098812.py", line 1, in <module>
    print(*sorted.map(int, input().split()))
AttributeError: 'builtin_function_or_method' object has no attribute 'map'


Fixed submission:

print(*sorted.map(int, input().split()))
Problem p02396 (Python) — buggy submission, verdict: Runtime Error

for i in range(1, 10001):
    inpu = int(input())
    if inpu == 0:
        break
    else:
        print("Case %d: %d" % (i, inpu))


Error: TypeError: range expected at least 1 argument, got 0
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02396/Python/s685911962.py", line 1, in <module>
    for i in range():
TypeError: range expected at least 1 argument, got 0


Fixed submission:

for i in range():
    inpu = int(input())
    if inpu == 0:
        break
    else:
        print("Case %d: %d" % (i, inpu))
Problem p02396 (Python) — buggy submission, verdict: Runtime Error

i = 1
while True:
    x = int(input())
    if x == 0:
        break
    print(f"Case {i}: {x}")
    i += 1


Error: TypeError: int() argument must be a string, a bytes-like object or a real number, not 'builtin_function_or_method'
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02396/Python/s606427724.py", line 3, in <module>
    x = int(input)
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'builtin_function_or_method'


Fixed submission:

i = 1
while True:
    x = int(input)
    if x == 0:
        break
    print(f"Case {i}: {x}")
    i += 1
Problem p02396 (Python) — buggy submission, verdict: Runtime Error

array = []
x = input()
while x != "0":
    array.append(x)
    x = input()
for i, x in enumerate(array):
    print("Case %d: %s" % (i + 1, x))


Error: EOFError: EOF when reading a line
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02396/Python/s875412235.py", line 5, in <module>
    x = input()
EOFError: EOF when reading a line


Fixed submission:

array = []
x = input()
while x != 0:
    array.append(x)
    x = input()
for i, x in enumerate(array):
    print("Case %d: %d" % (i + 1, x))
Problem p02400 (Python) — buggy submission, verdict: Runtime Error

r = float(input())
print("{:.6f} {:.6f}".format(r * r * 3.14159265359, 2 * r * 3.14159265359))


Error: WA

Fixed submission:

r = int(input())
print(r * r * 3.14159265359, 2 * r * 3.14159265359)
Problem p02400 (Python) — buggy submission, verdict: Runtime Error

r = float(input())
pi = 3.1415926535897932384626
print(pi * r * r, 2 * pi * r)


Error: WA

Fixed submission:

r = int(input())
pi = 3.141592653589793238
print(pi * r * r, 2 * pi * r)
Problem p02400 (Python) — buggy submission, verdict: Runtime Error

import math

r = float(input())

area = math.pi * r * r
circum = 2 * math.pi * r
print(str("{0:.6f}".format(area)) + " " + str("{0:.6f}".format(circum)))


Error: 0

Fixed submission:

r = int(input())
pi = 3.141592653589793
area = pi * r * r
circum = 2 * pi * r
print(str("{0:.6f}".format(area)) + " " + str("{0:.6f}".format(circum)))
Problem p02400 (Python) — buggy submission, verdict: Runtime Error

from math import pi

r = float(input())
print("{} {}".format(r * r * pi, 2 * pi * r))


Error: WA

Fixed submission:

from math import pi

r = int(input())

# 面積
circle_area = r * r * pi
# 円周
circumference = 2.0 * r * pi

print("{} {}".format(circle_area, circumference))
Problem p02400 (Python) — buggy submission, verdict: Runtime Error

pi = 3.14159265359
r = float(input())

print(f"{r*r*pi:.6f} {2*r*pi:.6f}")


Error: 0

Fixed submission:

pi = 3.14159265359
r = int(input())

print(f"{r*r*pi:.6f} {2*r*pi:.6f}")
Problem p02401 (Python) — buggy submission, verdict: Runtime Error

while True:
    a, op, b = map(str, input().split(" "))
    if op == "?":
        break
    a, b = int(a), int(b)
    if op == "+":
        c = a + b
    elif op == "-":
        c = a - b
    elif op == "*":
        c = a * b
    else:
        c = a // b
    print(c)


Error: ZeroDivisionError: division by zero
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02401/Python/s740971831.py", line 13, in <module>
    c = a / b
ZeroDivisionError: division by zero


Fixed submission:

while True:
    a, op, b = map(str, input().split(" "))
    if a == 0 and b == 0:
        break
    a, b = int(a), int(b)
    if op == "+":
        c = a + b
    elif op == "-":
        c = a - b
    elif op == "*":
        c = a * b
    else:
        c = a / b
    print(c)
Problem p02402 (Python) — buggy submission, verdict: Runtime Error

n = int(input())
x = [int(v) for v in input().split()]
print(min(x), max(x), sum(x))


Error: ValueError: min() arg is an empty sequence
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02402/Python/s204473454.py", line 3, in <module>
    print(min(x), max(x), sum(x))
ValueError: min() arg is an empty sequence


Fixed submission:

x = [int(v) for v in input().split()]
del x[0]
print(min(x), max(x), sum(x))
Problem p02402 (Python) — buggy submission, verdict: Runtime Error

input()
li = list(map(int, input().split()))
print(min(li), max(li), sum(li))


Error: ValueError: max() arg is an empty sequence
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02402/Python/s227796707.py", line 3, in <module>
    print(min(li), max(li), sum(li))
ValueError: max() arg is an empty sequence


Fixed submission:

input()
li = map(int, input().split())
print(min(li), max(li), sum(li))
Problem p02402 (Python) — buggy submission, verdict: Runtime Error

n = int(input())
a = list(map(int, input().split()))
print(min(a), max(a), sum(a))


Error: ValueError: max() arg is an empty sequence
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02402/Python/s610106422.py", line 3, in <module>
    print(min(a), max(a), sum(a))
ValueError: max() arg is an empty sequence


Fixed submission:

n = int(input())
a = map(int, input().split())
print(min(a), max(a), sum(a))
Problem p02402 (Python) — buggy submission, verdict: Runtime Error

input()

a = list(map(int, input().split()))

s = 0

for i in a:
    s = s + i

print(min(a), max(a), s)


Error: TypeError: 'int' object is not iterable
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02402/Python/s130438338.py", line 7, in <module>
    for i in len(a):
TypeError: 'int' object is not iterable


Fixed submission:

input()

a = list(map(int, input().split()))

s = 0

for i in len(a):
    s = s + i

print(min(a), max(a), s)
Problem p02407 (Python) — buggy submission, verdict: Runtime Error

input()
print(" ".join(input().split()[::-1]))


Error: TypeError: int() argument must be a string, a bytes-like object or a real number, not 'builtin_function_or_method'
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02407/Python/s871236231.py", line 1, in <module>
    n = int(input)
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'builtin_function_or_method'


Fixed submission:

n = int(input)
lst = list(map(int, input().split()))
print(" ".join(lst[::-1]))
Problem p02408 (Python) — buggy submission, verdict: Runtime Error

suit = {"S": 0, "H": 1, "C": 2, "D": 3}
suit_keys = list(suit.keys())
deck = [[suit_keys[i] + " " + str(j + 1) for j in range(13)] for i in range(4)]
for _ in range(int(input())):
    card = input().split()
    deck[suit[card[0]]][int(card[1]) - 1] = ""
for i in range(4):
    for j in deck[i]:
        if j != "":
            print(j)


Error: IndexError: list assignment index out of range
Traceback (most recent call last):
  File "/home/alex/Documents/bug-detection/input/Project_CodeNet/data/p02408/Python/s709538093.py", line 6, in <module>
    deck[suit[card[0]]][int(card[1])] = ""
IndexError: list assignment index out of range


Fixed submission:

suit = {"S": 0, "H": 1, "C": 2, "D": 3}
suit_keys = list(suit.keys())
deck = [[suit_keys[i] + " " + str(j + 1) for j in range(13)] for i in range(4)]
for _ in range(int(input())):
    card = input().split()
    deck[suit[card[0]]][int(card[1])] = ""
for i in range(4):
    for j in deck[i]:
        if j != "":
            print(j)