Borderou de evaluare (job #3134079)

Utilizator DragosStezarStezar Dragos Matei DragosStezar Data 28 mai 2023 13:03:27
Problema Problema rucsacului Status done
Runda Arhiva educationala Compilator c-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:34:12: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 34 | fscanf("%d %d" , &n , &g); | ^~~~~~~ | | | char * In file included from main.c:1: /usr/include/stdio.h:415:37: note: expected 'FILE * restrict' but argument is of type 'char *' 415 | extern int fscanf (FILE *__restrict __stream, | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:34:22: warning: passing argument 2 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 34 | fscanf("%d %d" , &n , &g); | ^~ | | | int * /usr/include/stdio.h:416:43: note: expected 'const char * restrict' but argument is of type 'int *' 416 | const char *__restrict __format, ...) __wur; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:37:16: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 37 | fscanf("%d %d" , &array[i].greutate , &array[i].profit); | ^~~~~~~ | | | char * /usr/include/stdio.h:415:37: note: expected 'FILE * restrict' but argument is of type 'char *' 415 | extern int fscanf (FILE *__restrict __stream, | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:37:26: warning: passing argument 2 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 37 | fscanf("%d %d" , &array[i].greutate , &array[i].profit); | ^~~~~~~~~~~~~~~~~~ | | | int * /usr/include/stdio.h:416:43: note: expected 'const char * restrict' but argument is of type 'int *' 416 | const char *__restrict __format, ...) __wur; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:40:13: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 40 | fprintf("%d\n" , maxim); | ^~~~~~ | | | char * /usr/include/stdio.h:350:38: note: expected 'FILE * restrict' but argument is of type 'char *' 350 | extern int fprintf (FILE *__restrict __stream, | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:40:22: warning: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion] 40 | fprintf("%d\n" , maxim); | ^~~~~ | | | int /usr/include/stdio.h:351:44: note: expected 'const char * restrict' but argument is of type 'int' 351 | const char *__restrict __format, ...); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms303kbIncorect00
20ms303kbIncorect0
30ms303kbIncorect00
40ms303kbIncorect0
50ms303kbIncorect0
60ms303kbIncorect00
70ms303kbIncorect0
80ms303kbIncorect00
90ms303kbIncorect0
100ms303kbIncorect0
110ms303kbIncorect00
120ms303kbIncorect0
130ms303kbIncorect0
140ms303kbIncorect00
150ms303kbIncorect0
160ms303kbIncorect0
170ms303kbIncorect00
180ms303kbIncorect0
190ms303kbIncorect0
200ms303kbIncorect0
Punctaj total0

Ceva nu functioneaza?