Borderou de evaluare (job #1800619)
Utilizator | Data | 7 noiembrie 2016 22:11:52 | |
---|---|---|---|
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:7:16: error: ‘m’ undeclared (first use in this function)
return m;
^
user.c:7:16: note: each undeclared identifier is reported only once for each function it appears in
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:28:9: warning: passing argument 1 of ‘scanf’ from incompatible pointer type [enabled by default]
scanf(f,"%d %d",&a,&b);
^
In file included from /usr/include/features.h:357:0,
from /usr/include/stdlib.h:25,
from user.c:1:
/usr/include/stdio.h:452:12: note: expected ‘const char * restrict’ but argument is of type ‘struct FILE *’
extern int __REDIRECT (scanf, (__const char *__restrict __format, ...),
^
user.c: In function ‘cmmdc’:
user.c:9:9: warning: control reaches end of non-void function [-Wreturn-type]
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:14: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf(f,"%d %d",&a,&b);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !