0_0_29470540_28158.c:3:5: error: unknown type name 'LL'
LL ma[2][2];
^
0_0_29470540_28158.c:6:1: error: unknown type name 'LL'
LL nn[20],xx[20];
^
0_0_29470540_28158.c:7:1: error: unknown type name 'matrix'
matrix operator * (matrix a,matrix b)
^
0_0_29470540_28158.c:7:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
matrix operator * (matrix a,matrix b)
^
0_0_29470540_28158.c:17:1: error: unknown type name 'matrix'
matrix operator + (matrix a,matrix b)
^
0_0_29470540_28158.c:17:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before '+' token
matrix operator + (matrix a,matrix b)
^
0_0_29470540_28158.c: In function 'init':
0_0_29470540_28158.c:26:5: error: unknown type name 'matrix'
matrix a;
^
0_0_29470540_28158.c:27:6: error: request for member 'ma' in something not a structure or union
a.ma[0][0] = 1;
^
0_0_29470540_28158.c:28:6: error: request for member 'ma' in something not a structure or union
a.ma[0][1] = 7;
^
0_0_29470540_28158.c:29:6: error: request for member 'ma' in something not a structure or union
a.ma[1][0] = 7;
^
0_0_29470540_28158.c:30:6: error: request for member 'ma' in something not a structure or union
a.ma[1][1] = 48;
^
0_0_29470540_28158.c:31:5: error: unknown type name 'matrix'
matrix temp = a;
^
0_0_29470540_28158.c:35:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i = 1 ;i <= 18 ; i++)
^
0_0_29470540_28158.c:35:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_29470540_28158.c:39:13: error: unknown type name 'LL'
LL s1 = temp.ma[0][1] * 7 + temp.ma[1][1] * 1;
^
0_0_29470540_28158.c:39:25: error: request for member 'ma' in something not a structure or union
LL s1 = temp.ma[0][1] * 7 + temp.ma[1][1] * 1;
^
0_0_29470540_28158.c:39:45: error: request for member 'ma' in something not a structure or union
LL s1 = temp.ma[0][1] * 7 + temp.ma[1][1] * 1;
^
0_0_29470540_28158.c:41:13: error: unknown type name 'LL'
LL s2 = temp.ma[0][0] * 7 + temp.ma[1][0] * 1;
^
0_0_29470540_28158.c:41:25: error: request for member 'ma' in something not a structure or union
LL s2 = temp.ma[0][0] * 7 + temp.ma[1][0] * 1;
^
0_0_29470540_28158.c:41:45: error: request for member 'ma' in something not a structure or union
LL s2 = temp.ma[0][0] * 7 + temp.ma[1][0] * 1;
^
0_0_29470540_28158.c: In function 'main':
0_0_29470540_28158.c:50:5: error: unknown type name 'LL'
LL N;
^
0_0_29470540_28158.c:51:11: error: 'cin' undeclared (first use in this function)
while(cin>>N && N)
^
0_0_29470540_28158.c:51:11: note: each undeclared identifier is reported only once for each function it appears in
0_0_29470540_28158.c:53:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i = 7 ; i >= 0 ; i--)
^
0_0_29470540_28158.c:57:17: error: 'cout' undeclared (first use in this function)
cout<<nn[i]<<" "<<xx[i]<<endl;
^
0_0_29470540_28158.c:57:42: error: 'endl' undeclared (first use in this function)
cout<<nn[i]<<" "<<xx[i]<<endl;
^
|