There are quite a few probs in ur prog
1. scanf - U hav declared a 2 dim array so scanf shud be
scanf("%d",&salary[0][0]);
scanf("%d",&salary[0][1]);
scanf("%d",&salary[0][2]); ......
scanf("%d",&salary[1][11]);
2. Also the while (!match) loop is never...