/in/foo.cc: In function 'int main()':
/in/foo.cc:48:12: error: conflicting declaration 'int t'
int N,M,K,t,i,j;
^
/in/foo.cc:47:14: note: previous declaration as 'Matrix t'
Matrix x,t;
^
/in/foo.cc:57:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'Matrix*' [-Wformat=]
scanf("%d",&x);
~~^
/in/foo.cc:58:13: error: no match for 'operator[]' (operand types are 'long long int [120]' and 'Matrix')
A[i].a[j][x]=1,A[i].a[j][j]=0;
^
/in/foo.cc:68:25: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%d ",x.a[i][1]);
~~~~~~~~~^