• + 0 comments
    # Enter your code here. Read input from STDIN. Print output to STDOUT
    test_cases = int(input())
    for c in range(test_cases):
        # a, b = map(int, input().split())
        try:
            case = input().split()
            a = int(case[0])
            b = int(case[1])
            answer = a/b
        except ZeroDivisionError as e:
            print(f"Error Code: integer division or modulo by zero")
        except ValueError as e:
            if not case[0].isdigit():
                print(f"Error Code: invalid literal for int() with base 10: '{case[0]}'")
            else:
                print(f"Error Code: invalid literal for int() with base 10: '{case[1]}'")
        else:
            print(int(answer))