Borderou de evaluare (job #1921992)

Utilizator DruffbaumPopescu Vlad Druffbaum Data 10 martie 2017 15:35:46
Problema Char Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 100

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 + 1 + MAX_P + 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
10ms268kbOK10
20ms272kbOK10
30ms272kbOK10
40ms272kbOK10
50ms276kbOK10
60ms276kbOK10
70ms272kbOK10
80ms316kbOK10
90ms312kbOK10
100ms312kbOK10
Punctaj total100

Ceva nu functioneaza?