Takze tu je zdrojak;

#include <stdio.h>

#define K 100
#define Soucin(promk, prom1, prom2) (promk)*(prom2)*(prom1)

int main()
{
int a, b = 1;
int res;

printf("Zadejte prvni promennou ");
// scand("%d", &a);
printf("Zadejte druhou promennou ");
// scand("%d", &b);
a = 1;
b = 3;
printf("Soucin dle definovaneho makra je %d", Soucin(K, a, b) );
return 0;
}

Takze takto to vraci spravny vypocet

Ale pokud odeberu a = 1 a b = 3 tak by teoreticky mel byt vypocet 100, ale vraci to 7929600

A kdyz tam povolim nacitani ze vstupu scand tak kompiler zahlasi
/tmp/ccsIqJH9.o(.text+0x2b): In function `main':
: undefined reference to `scand'
/tmp/ccsIqJH9.o(.text+0x4a): In function `main':
: undefined reference to `scand'
collect2: ld returned 1 exit status

Mam GCC 3.3.1-r1

Muze byt problem v tom kompileru?