Borderou de evaluare (job #2529691)

Utilizator AlexNeaguAlexandru AlexNeagu Data 23 ianuarie 2020 20:29:12
Problema Ordine Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:10:12: warning: array subscript has type 'char' [-Wchar-subscripts] freq[it]++; ^ main.cpp:12:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 1; i <= s.size(); i++) { ~~^~~~~~~~~~~ main.cpp:16:17: warning: array subscript has type 'char' [-Wchar-subscripts] if (freq[c]) best_lett = c; ^ main.cpp:17:17: warning: array subscript has type 'char' [-Wchar-subscripts] if (freq[c] == (s.size() - i + 1) / 2 + 1) { ^ main.cpp:17:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (freq[c] == (s.size() - i + 1) / 2 + 1) { ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:22:19: warning: array subscript has type 'char' [-Wchar-subscripts] freq[best_lett]--; ^ main.cpp:13:10: warning: 'best_lett' may be used uninitialized in this function [-Wmaybe-uninitialized] char best_lett; ^~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbIncorect0
22ms131kbIncorect0
33ms131kbIncorect0
43ms131kbIncorect0
524ms524kbIncorect0
665ms913kbIncorect0
786ms1044kbIncorect0
8120ms1699kbIncorect0
9167ms2093kbIncorect0
1078ms1306kbOK10
Punctaj total10

Ceva nu functioneaza?