Borderou de evaluare (job #859731)
| 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:23:27 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:17:5: error: implicit declaration of function 'random'; did you mean 'rand'? [-Wimplicit-function-declaration]
17 | random(v,n);
| ^~~~~~
| rand
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 'random'; have 'void(int *, int)'
38 | void random(int v[],int n)
| ^~~~~~
main.c:17:5: note: previous implicit declaration of 'random' with type 'void(int *, int)'
17 | random(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]);
| ^~~~~~~~~~~~~~~~~~~~~~~