Borderou de evaluare (job #1564236)

Utilizator Condition17Conache Cristian Condition17 Data 9 ianuarie 2016 14:15:22
Problema Teams Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:43:8: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if (x != 0) ^ user.c:71:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("\n%d - %d",i,j); ^ user.c:71:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] user.c:79:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("\n%d",sol); ^ user.c:82:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(f,"%d",sol); ^ user.c:66:5: warning: unused variable ‘ok’ [-Wunused-variable] int ok =1; ^ user.c:18:14: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result] fgets(s,32767,f); ^ user.c:77:19: warning: ‘B’ may be used uninitialized in this function [-Wmaybe-uninitialized] sol += v[B-power[i]] - v[A - power[i]]-k; ^ user.c:69:7: warning: ‘A’ may be used uninitialized in this function [-Wmaybe-uninitialized] if(power[i]<=A){ ^ user.c:27:32: warning: ‘N’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (i == 1 && cont<=N) { ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms296kbIncorect0
20ms292kbIncorect0
30ms296kbIncorect0
40ms300kbIncorect0
50ms304kbIncorect0
60ms300kbKilled by signal 11(SIGSEGV).0
70ms304kbKilled by signal 11(SIGSEGV).0
80ms300kbKilled by signal 11(SIGSEGV).0
90ms300kbKilled by signal 11(SIGSEGV).0
100ms296kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?