Borderou de evaluare (job #1479343)
Utilizator | Data | 31 august 2015 08:01:49 | |
---|---|---|---|
Problema | Transformari | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘R’:
user.c:3:1: warning: implicit declaration of function ‘ret’ [-Wimplicit-function-declaration]
int R(int n,int x) { return x==1?(n-1):(!x?1000001:(n/x+ret(x,n%x))); }
^
user.c: In function ‘main’:
user.c:5:9: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("transformari.in","r",stdin),freopen("transformari.out","w",stdout),scanf("%d",&n);
^
user.c:5:46: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("transformari.in","r",stdin),freopen("transformari.out","w",stdout),scanf("%d",&n);
^
user.c:5:83: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
freopen("transformari.in","r",stdin),freopen("transformari.out","w",stdout),scanf("%d",&n);
^
/tmp/cc1UD1sv.o: In function `R':
user.c:(.text+0x31): undefined reference to `ret'
collect2: error: ld returned 1 exit status
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !