Borderou de evaluare (job #1373081)

Utilizator hrazvanHarsan Razvan hrazvan Data 4 martie 2015 16:43:56
Problema Tsah Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:20:3: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘char *’ [-Wformat=] fscanf(in, "%d", &t); ^ user.c:28:9: warning: array subscript has type ‘char’ [-Wchar-subscripts] ma[lin][j] = fgetc(in); ^ user.c:29:9: warning: array subscript has type ‘char’ [-Wchar-subscripts] ma[lin][j] -= '0'; ^ user.c:31:11: warning: array subscript has type ‘char’ [-Wchar-subscripts] d[lin][j] = 1; ^ user.c:32:9: warning: array subscript has type ‘char’ [-Wchar-subscripts] else if(ma[lin][j - 1] == ma[lin][j] || ma[!lin][j] == ma[lin][j] || ma[!lin][j - 1] != ma[lin][j]) ^ user.c:32:9: warning: array subscript has type ‘char’ [-Wchar-subscripts] user.c:32:9: warning: array subscript has type ‘char’ [-Wchar-subscripts] user.c:32:9: warning: array subscript has type ‘char’ [-Wchar-subscripts] user.c:33:11: warning: array subscript has type ‘char’ [-Wchar-subscripts] d[lin][j] = 1; ^ user.c:35:11: warning: array subscript has type ‘char’ [-Wchar-subscripts] d[lin][j] = min3(d[lin][j - 1], d[!lin][j], d[!lin][j - 1]) + 1; ^ user.c:35:11: warning: array subscript has type ‘char’ [-Wchar-subscripts] user.c:36:9: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(ma[lin][j] == 1){ ^ user.c:37:11: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(d[lin][j] > max){ ^ user.c:38:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] max = d[lin][j]; ^ user.c:41:11: warning: array subscript has type ‘char’ [-Wchar-subscripts] else if(d[lin][j] == max) ^ user.c:20:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d", &t); ^ user.c:24:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d ", &n); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
1184ms280kbOK500
2Depăşit276kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?