Borderou de evaluare (job #2256990)

Utilizator manasapiMana Sapi manasapi Data 9 octombrie 2018 15:35:51
Problema Transport Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:33:10: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration] ar = malloc(sizeof(int)*aSize); ^~~~~~ user.c:33:10: warning: incompatible implicit declaration of built-in function ‘malloc’ user.c:33:10: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’ user.c:38:13: warning: assignment makes integer from pointer without a cast [-Wint-conversion] sum += ar+i; ^~ user.c:64:5: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration] free(ar); ^~~~ user.c:64:5: warning: incompatible implicit declaration of built-in function ‘free’ user.c:64:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’ user.c:29:5: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("transport.in", "rt", stdin); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ user.c:30:5: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("transport.out", "wt", stdout); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ user.c:31:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%i%i", &aSize, &nTrips); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ user.c:37:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%i", ar+i); ^~~~~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms876kbIncorect0
20ms752kbIncorect0
30ms856kbOK10
40ms872kbIncorect0
50ms752kbIncorect0
64ms872kbOK10
74ms880kbIncorect0
84ms756kbOK10
94ms796kbOK10
104ms936kbOK10
Punctaj total50

Ceva nu functioneaza?