Borderou de evaluare (job #859732)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Selecţie (clasa a 6-a) | Compilator | c |
| Rundă | Tema 18 Clasa a 6-a | Status | evaluat |
| Dată | 3 mai 2026 11:24:46 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:17:5: error: implicit declaration of function 'amestec' [-Wimplicit-function-declaration]
17 | amestec(v,n);
| ^~~~~~~
main.c:22:14: error: implicit declaration of function 'partitie' [-Wimplicit-function-declaration]
22 | part=partitie(v,st,dr);
| ^~~~~~~~
main.c: At top level:
main.c:38:6: warning: conflicting types for 'amestec'; have 'void(int *, int)'
38 | void amestec(int v[],int n)
| ^~~~~~~
main.c:17:5: note: previous implicit declaration of 'amestec' with type 'void(int *, int)'
17 | amestec(v,n);
| ^~~~~~~
main.c: In function 'main':
main.c:12:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
12 | fscanf (fin,"%d%d",&n,&k);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
main.c:14:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | fscanf (fin,"%d",&v[i]);
| ^~~~~~~~~~~~~~~~~~~~~~~