Borderou de evaluare (job #1921846)

Utilizator DruffbaumPopescu Vlad Druffbaum Data 10 martie 2017 14:57:38
Problema Char Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:15:5: warning: array subscript has type ‘char’ [-Wchar-subscripts] fg[text[i] = fgetc(f) - 'a'] = 1; ^ user.c:28:5: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (fg[text[i]] > max) { ^ user.c:29:7: warning: array subscript has type ‘char’ [-Wchar-subscripts] max = fg[text[i]]; ^ user.c:31:5: warning: array subscript has type ‘char’ [-Wchar-subscripts] } else if (max == fg[text[i]]) { ^ user.c:34:5: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (head[j = i + MAX_P + 1 + fg[text[i]]] < (m = i + MAX_P + 1 - fg[text[i]])) { ^ user.c:34:5: warning: array subscript has type ‘char’ [-Wchar-subscripts] user.c:13:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d", &n); ^ user.c:17:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d", &h); ^ user.c:22:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d", &fg[++j]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms272kbIncorect0
20ms268kbIncorect0
30ms272kbIncorect0
40ms272kbIncorect0
50ms276kbIncorect0
60ms272kbIncorect0
70ms276kbIncorect0
80ms312kbIncorect0
90ms312kbIncorect0
100ms312kbIncorect0
Punctaj total0

Ceva nu functioneaza?