Borderou de evaluare (job #2733838)

Utilizator BAlexandruBorgovan Alexandru BAlexandru Data 30 martie 2021 23:09:27
Problema Substr Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 80

Raport evaluator

Compilare: main.cpp: In function 'void init()': main.cpp:23:14: warning: array subscript has type 'char' [-Wchar-subscripts] ind[c] = p; ^ main.cpp:26:14: warning: array subscript has type 'char' [-Wchar-subscripts] ind[c] = p; ^ main.cpp:29:14: warning: array subscript has type 'char' [-Wchar-subscripts] ind[c] = p; ^ main.cpp: In function 'bool ok(int)': main.cpp:40:33: warning: array subscript has type 'char' [-Wchar-subscripts] h = (h * base + ind[s[i]]) % mod; ^ main.cpp:48:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = value; i < s.size(); i++) ~~^~~~~~~~~~ main.cpp:50:45: warning: array subscript has type 'char' [-Wchar-subscripts] h = (h + mod - (p * ind[s[i - value]]) % mod) % mod; ^ main.cpp:51:33: warning: array subscript has type 'char' [-Wchar-subscripts] h = (h * base + ind[s[i]]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1104ms1163kbTime limit exceeded0
278ms1060kbOK10
352ms1032kbOK10
420ms393kbOK10
541ms638kbOK10
686ms790kbOK10
73ms131kbOK10
83ms131kbOK10
95ms131kbOK10
108ms217kbIncorect0
Punctaj total80

Ceva nu functioneaza?