Borderou de evaluare (job #859713)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Selecţie (clasa a 6-a) | Compilator | c |
| Rundă | Tema 18 Clasa a 6-a | Status | evaluat |
| Dată | 2 mai 2026 17:38:54 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'amesteca':
main.c:8:9: error: implicit declaration of function 'interschimba' [-Wimplicit-function-declaration]
8 | interschimba(&v[i],&v[i2]);
| ^~~~~~~~~~~~
main.c: At top level:
main.c:11:6: warning: conflicting types for 'interschimba'; have 'void(int *, int *)'
11 | void interschimba(int *pa,int *pb){
| ^~~~~~~~~~~~
main.c:8:9: note: previous implicit declaration of 'interschimba' with type 'void(int *, int *)'
8 | interschimba(&v[i],&v[i2]);
| ^~~~~~~~~~~~
main.c: In function 'main':
main.c:31:13: warning: unused variable 'p' [-Wunused-variable]
31 | int n,i,p,st,dr,k;
| ^
main.c:34:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
34 | fscanf(fin,"%d%d",&n,&k);
| ^~~~~~~~~~~~~~~~~~~~~~~~
main.c:36:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
36 | fscanf(fin,"%d",&v[i]);
| ^~~~~~~~~~~~~~~~~~~~~~