Borderou de evaluare (job #2193004)
Utilizator | Data | 8 aprilie 2018 10:53:20 | |
---|---|---|---|
Problema | Secv | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘init’:
user.c:22:5: warning: implicit declaration of function ‘sort’ [-Wimplicit-function-declaration]
sort(poz,poz+N,cmp);
^~~~
user.c: In function ‘read_data’:
user.c:8:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&N);
^~~~~~~~~~~~~~
user.c:10: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:71:5: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("secv.in","r",stdin);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
user.c:72:5: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("secv.out","w",stdout);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/cchOa1My.o: In function `init':
user.c:(.text+0xbc): 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 !