What is the compilation error here?

import math
t=raw_input()

for i in range(int(t)):
    typ=raw_input()
    n=int(typ.strip().split()[0])
	k=int(typ.strip().split()[1])
	main=str(int(math.pow(n,n)))

print (main[:k]+" "+ main[len(main)-k:len(main)])

This is from question id A4 and language used is PYTH, error shown at first attempt was NZEC and at the second one was compilation error indent required. Now I have fixed everything and yet not running, Please help.

Question: The Rise and Fall of Power

Try this snippet on PYTH (Python 2.7.9)-

import math
t=raw_input()

for i in range(int(t)):
    typ=raw_input()
    n=int(typ.strip().split()[0])
    k=int(typ.strip().split()[1])
    main=str(int(math.pow(n,n)))
    print (main[:k]+" "+ main[len(main)-k:len(main)])