Poradte mi kde moze byt chyba:
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define R 4
#define S 5
int MaximumMatice(int m[][S], int radky);
long SoucetMatice(int m[][S], int radky);
int main(int argc, char *argv[])
{
int i, j;
int maximum;
long soucet=0; time_t t;
int mat[R][S];
srand((unsigned) time(&t));
for(i=0;i<R;i++)
for(j=0;j<S;j++)
mat[i][j]=rand();
for(i=0;i<R;i++)
{
for(j=0;j<S;j++)
printf("%8d ",mat[i][j]); printf("\n");
}
maximum=MaximumMatice(mat,R);
printf("\nNejvetsi hodnota matice je %8d \n",maximum);
soucet=SoucetMatice(mat,R);
printf("\nSoucet vsech hodnot matice je %12ld \n",soucet);
return 0;
}
TOTO PISE KOMPILATOR: [Linker error] undefined reference to `MaximumMatice'
[Linker error] undefined reference to `SoucetMatice'
ld returned 1 exit status
DÁVEJTE ZDROJÁKY DO [CODE][/CODE]!!!