Borderou de evaluare (job #1347874)

Utilizator hrazvanHarsan Razvan hrazvan Data 19 februarie 2015 12:19:35
Problema Redu Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:29:5: warning: array subscript has type ‘char’ [-Wchar-subscripts] d[i][i + 1] = cost[v[i]][v[i + 1]]; ^ user.c:29:5: warning: array subscript has type ‘char’ [-Wchar-subscripts] user.c:35:7: warning: array subscript has type ‘char’ [-Wchar-subscripts] d[j][k] = d[j + 1][k - 1] + cost[v[j]][v[k]]; ^ user.c:35:7: warning: array subscript has type ‘char’ [-Wchar-subscripts] user.c:37:9: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(d[j][k] > d[j][l - 1] + d[l + 1][k - 1] + cost[v[l]][v[k]]) ^ user.c:37:9: warning: array subscript has type ‘char’ [-Wchar-subscripts] user.c:38:11: warning: array subscript has type ‘char’ [-Wchar-subscripts] d[j][k] = d[j][l - 1] + d[l + 1][k - 1] + cost[v[l]][v[k]]; ^ user.c:38:11: warning: array subscript has type ‘char’ [-Wchar-subscripts] user.c:40:7: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(d[j][k] > d[j][k - 2] + cost[v[k - 1]][v[k]]) ^ user.c:40:7: warning: array subscript has type ‘char’ [-Wchar-subscripts] user.c:41:9: warning: array subscript has type ‘char’ [-Wchar-subscripts] d[j][k] = d[j][k - 2] + cost[v[k - 1]][v[k]]; ^ user.c:41:9: warning: array subscript has type ‘char’ [-Wchar-subscripts] user.c:11:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d ", &n); ^ user.c:18:13: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d", &cost[i][j]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms276kbOK10
20ms296kbOK10
30ms352kbOK10
40ms452kbOK10
58ms844kbOK10
648ms1228kbOK10
748ms1232kbOK10
848ms1232kbOK10
948ms1232kbOK10
1048ms1236kbOK10
Punctaj total100

Ceva nu functioneaza?