Borderou de evaluare (job #1229061)

Utilizator cristinabCristina Brinza cristinab Data 16 septembrie 2014 10:49:31
Problema Spargere2 Status done
Runda Arhiva Monthly Compilator c | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:26:2: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=] fscanf(in, "%d", &val[0]); ^ user.c:30:9: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=] fscanf(in, "%d", &val[i]); ^ user.c:41:9: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(out, "%ld\n", suma[n - 1]); ^ user.c:17:18: warning: unused variable ‘j’ [-Wunused-variable] int n, k, i, j; ^ user.c:23:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d", &n); ^ user.c:24:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d", &k); ^ user.c:26:8: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d", &val[0]); ^ user.c:30:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d", &val[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms280kbOK100
20ms264kbOK10
30ms276kbOK10
40ms272kbOK10
520ms1440kbOK10
620ms1444kbOK10
736ms1448kbIncorect0
832ms1440kbIncorect0
932ms1444kbIncorect0
100ms276kbOK10
Punctaj total0

Ceva nu functioneaza?