Borderou de evaluare (job #2733834)

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

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:39: warning: array subscript has type 'char' [-Wchar-subscripts] h = (1LL * 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:53: warning: array subscript has type 'char' [-Wchar-subscripts] h = (1LL * h + mod - (1LL * ind[s[i - value]] * p) % mod) % mod; ^ main.cpp:51:39: warning: array subscript has type 'char' [-Wchar-subscripts] h = (1LL * h * base + ind[s[i]]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1101ms1110kbTime limit exceeded0
296ms1150kbIncorect0
342ms1093kbOK10
418ms393kbIncorect0
561ms770kbIncorect0
682ms765kbIncorect0
73ms131kbOK10
82ms131kbOK10
95ms131kbIncorect0
1019ms724kbIncorect0
Punctaj total30

Ceva nu functioneaza?