Borderou de evaluare (job #1558573)

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

Raport evaluator

Compilare: user.c: In function ‘getBases’: user.c:42:5: warning: array subscript has type ‘char’ [-Wchar-subscripts] code[c] = c - 'a' + 1; ^ user.c:45:5: warning: array subscript has type ‘char’ [-Wchar-subscripts] code[c] = c - 'A' + SIGMA + 1; ^ user.c:48:5: warning: array subscript has type ‘char’ [-Wchar-subscripts] code[c] = c - '0' + (SIGMA << 1) + 2; ^ user.c: In function ‘try’: user.c:104:5: warning: array subscript has type ‘char’ [-Wchar-subscripts] pHash = (pHash * BASE + code[s[i]]) % P; ^ user.c:105:5: warning: array subscript has type ‘char’ [-Wchar-subscripts] eHash = (eHash * BASE + code[s[i]]) % E; ^ user.c:108:5: warning: array subscript has type ‘char’ [-Wchar-subscripts] pHash = (pHash * BASE + code[s[i]]) % P; ^ user.c:109:5: warning: array subscript has type ‘char’ [-Wchar-subscripts] eHash = (eHash * BASE + code[s[i]]) % E; ^ user.c:113:5: warning: array subscript has type ‘char’ [-Wchar-subscripts] pHash = ((pHash - pBases[lim] * code[s[i - lim]]) % P + P) % P; ^ user.c:114: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:136: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:143: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
116ms1096kbOK10
216ms1096kbOK10
316ms1100kbOK10
44ms756kbOK10
516ms1060kbOK10
612ms1068kbOK10
70ms652kbIncorect0
80ms652kbOK10
90ms668kbOK10
1016ms992kbOK10
Punctaj total90

Ceva nu functioneaza?