Borderou de evaluare (job #1564977)

Utilizator Condition17Conache Cristian Condition17 Data 10 ianuarie 2016 10:14:07
Problema Teams Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 90

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:141:5: warning: format ‘%li’ expects argument of type ‘long int *’, but argument 3 has type ‘short int *’ [-Wformat=] fscanf(f,"%li",&A); ^ user.c:142:5: warning: format ‘%li’ expects argument of type ‘long int *’, but argument 3 has type ‘short int *’ [-Wformat=] fscanf(f,"%li",&B); ^ user.c:145:9: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘short int *’ [-Wformat=] fscanf(f,"%d",&power[i]); ^ user.c:175:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(f,"%d",sol); ^ user.c: In function ‘citire’: user.c:49:14: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result] fgets(s,100,f); ^ user.c:73:14: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result] fgets(s,32767,f); ^ user.c: In function ‘main’: user.c:139:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%li",&N); ^ user.c:141:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%li",&A); ^ user.c:142:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%li",&B); ^ user.c:145:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&power[i]); ^ user.c: In function ‘citire’: user.c:93:9: warning: attempt to free a non-heap object ‘s’ [-Wfree-nonheap-object] free(s); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms268kbOK10
20ms276kbOK10
30ms272kbOK10
40ms268kbOK10
50ms276kbOK10
64ms284kbOK10
712ms292kbOK10
824ms328kbOK10
944ms380kbOK10
10Depăşit452kbTime limit exceeded.0
Punctaj total90

Ceva nu functioneaza?