#include #include #define mat(a,n,i,j) (*(a+(i)*n+(j))) int simhor(int n, int *a) { int i,j; for(i=0;i