0

Mates, this is my first piece of C code. I do not know what is wrong. Please, tell me, that's not so I've highlighted the lines that the compiler "doesn't like " -

```
#include <stdio.h>
#include <alloc.h>
#include <stdlib.h>
main()
{ short int n = 0;
int k=0,u,i=0;
char a='';
short int **m ;
printf("\nPlease specify the dimension of the matrix. \n");
n = getchar();
printf("Specify values of elements of the matrix (figures)separated by spaces. \n");
m = (int**)calloc(n,sizeof(int*));
For(i=1;i<=n;i++)
{*(m+i) = (int*)calloc(n,sizeof(int));}
while (i<(n*n))
{
u = getchar();
if ((u != ' ')&&(u != '\n'))
{
i = i+1;
*(*(m+i)+k)=u;
if (i==n) {i=0; k++;}
}
}
if (i<=(n*n)) then printf("\n (!)ERROR: Dimension of the matrix exceeds the number of specified values. \n");
}
```

Thank you for your help! ))