Borderou de evaluare (job #2256995)

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

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:32:10: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration] ar = malloc(sizeof(int)*aSize); ^~~~~~ user.c:32:10: warning: incompatible implicit declaration of built-in function ‘malloc’ user.c:32:10: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’ user.c:38:19: warning: overflow in implicit constant conversion [-Woverflow] int loopVal = 16384000000 / 2; ^~~~~~~~~~~ user.c:59:5: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration] free(ar); ^~~~ user.c:59:5: warning: incompatible implicit declaration of built-in function ‘free’ user.c:59:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’ user.c:28:5: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("transport.in", "rt", stdin); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ user.c:29:5: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("transport.out", "wt", stdout); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ user.c:30:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%i%i", &aSize, &nTrips); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ user.c:35: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
10ms860kbIncorect0
20ms812kbIncorect0
30ms864kbIncorect0
40ms936kbIncorect0
50ms756kbIncorect0
64ms808kbIncorect0
74ms796kbIncorect0
84ms756kbIncorect0
94ms752kbIncorect0
104ms756kbIncorect0
Punctaj total0

Ceva nu functioneaza?