Borderou de evaluare (job #1800643)
Utilizator | Data | 7 noiembrie 2016 22:25:33 | |
---|---|---|---|
Problema | Algoritmul lui Euclid | Status | done |
Runda | Arhiva educationala | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘cmmdc’:
user.c:9:9: warning: implicit declaration of function ‘euclid_gcd_recur’ [-Wimplicit-function-declaration]
return euclid_gcd_recur(b, a % b);}
^
user.c: In function ‘main’:
user.c:25:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&n);
^
user.c:28:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d",&a,&b);
^
/tmp/cci9ZX9F.o: In function `cmmdc':
user.c:(.text+0x1c): undefined reference to `euclid_gcd_recur'
/tmp/cci9ZX9F.o: In function `main':
user.c:(.text.startup+0xd0): undefined reference to `euclid_gcd_recur'
collect2: error: ld returned 1 exit status
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !