Second part of my code

as it showing some error while i attached two screenshots that new user can not attached two pictures thats why send whole code of mine in two post the code of mine pretty much similar to u but for 2*2 matrix of all ones answer is 16 but it show negative answer sir kindly solve my problem