Borderou de evaluare (job #823106)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Selecţie (clasa a 6-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 9 mai 2025 22:42:36 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'QuickSort':
main.c:35:24: error: passing argument 1 of 'algoritmul' makes pointer from integer without a cast [-Wint-conversion]
35 | pivot = algoritmul(v, start, end);
| ^
| |
| int
main.c:6:20: note: expected 'int *' but argument is of type 'int'
6 | int algoritmul(int v[], int start, int end){
| ~~~~^~~
main.c: In function 'main':
main.c:48:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
48 | fscanf(fin, "%d%d", &n, &k);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:51:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
51 | fscanf(fin, "%d", &v[i]);
| ^~~~~~~~~~~~~~~~~~~~~~~~