Borderou de evaluare (job #1230551)

Utilizator cristinabCristina Brinza cristinab Data 18 septembrie 2014 15:37:17
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
10ms276kbOK100
20ms264kbOK10
30ms280kbOK10
40ms280kbOK10
520ms1444kbOK10
620ms1444kbOK10
732ms1444kbIncorect0
832ms1436kbIncorect0
932ms1436kbIncorect0
100ms280kbOK10
Punctaj total0

Ceva nu functioneaza?