Line 27 and 34, what are u trying to do ('+k+') ??
and again which input is for row and which one is for column quite confusing use proper variables....