Borderou de evaluare (job #2193003)
Utilizator | Data | 8 aprilie 2018 10:49:43 | |
---|---|---|---|
Problema | Secv | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘cmp’:
user.c:17:16: warning: ‘return’ with a value, in function returning void
return x[a]<x[b];
~~~~^~~~~
user.c:15:6: note: declared here
void cmp(int a, int b)
^~~
user.c: In function ‘init’:
user.c:24:5: warning: implicit declaration of function ‘sort’ [-Wimplicit-function-declaration]
sort(poz,poz+N,cmp);
^~~~
user.c: In function ‘read_data’:
user.c:10:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&N);
^~~~~~~~~~~~~~
user.c:12:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x[i]);
^~~~~~~~~~~~~~~~~
user.c: In function ‘main’:
user.c:73:5: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("secv.in","r",stdin);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
user.c:74:5: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("secv.out","w",stdout);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/ccmScYpw.o: In function `init':
user.c:(.text+0xac): undefined reference to `sort'
collect2: error: ld returned 1 exit status
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !