Borderou de evaluare (job #1558551)

Utilizator stoianmihailStoian Mihail stoianmihail Data 29 decembrie 2015 13:11:43
Problema Substr Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 90

Raport evaluator

Compilare: user.c: In function ‘getBases’: user.c:41:5: warning: array subscript has type ‘char’ [-Wchar-subscripts] code[c] = c - 'a' + 1; ^ user.c:44:5: warning: array subscript has type ‘char’ [-Wchar-subscripts] code[c] = c - 'A' + SIGMA + 1; ^ user.c:47:5: warning: array subscript has type ‘char’ [-Wchar-subscripts] code[c] = c - '0' + (SIGMA << 1) + 1; ^ user.c: In function ‘try’: user.c:97:5: warning: array subscript has type ‘char’ [-Wchar-subscripts] pHash = (pHash * BASE + code[s[i]]) % P; ^ user.c:98:5: warning: array subscript has type ‘char’ [-Wchar-subscripts] eHash = (eHash * BASE + code[s[i]]) % E; ^ user.c:101:5: warning: array subscript has type ‘char’ [-Wchar-subscripts] pHash = (pHash * BASE + code[s[i]]) % P; ^ user.c:102:5: warning: array subscript has type ‘char’ [-Wchar-subscripts] eHash = (eHash * BASE + code[s[i]]) % E; ^ user.c:106:5: warning: array subscript has type ‘char’ [-Wchar-subscripts] pHash = ((pHash - pBases[lim] * code[s[i - lim]]) % P + P) % P; ^ user.c:107:5: warning: array subscript has type ‘char’ [-Wchar-subscripts] eHash = ((eHash - eBases[lim] * code[s[i - lim]]) % E + E) % E; ^ user.c: In function ‘main’: user.c:129:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d %d\n%s", &N, &K, s); ^ user.c:136:10: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("substr.out", "w", stdout); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
132ms3440kbOK10
232ms3440kbOK10
336ms3440kbOK10
416ms3104kbOK10
532ms3412kbOK10
632ms3404kbOK10
712ms3000kbIncorect0
812ms3000kbOK10
912ms3016kbOK10
1028ms3332kbOK10
Punctaj total90

Ceva nu functioneaza?