Pagini recente » Borderou de evaluare (job #578220) | Borderou de evaluare (job #1502621) | Borderou de evaluare (job #1509789) | Borderou de evaluare (job #1775266) | Borderou de evaluare (job #2529691)
Borderou de evaluare (job #2529691)
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 |
1 | 2ms | 131kb | Incorect | 0 |
2 | 2ms | 131kb | Incorect | 0 |
3 | 3ms | 131kb | Incorect | 0 |
4 | 3ms | 131kb | Incorect | 0 |
5 | 24ms | 524kb | Incorect | 0 |
6 | 65ms | 913kb | Incorect | 0 |
7 | 86ms | 1044kb | Incorect | 0 |
8 | 120ms | 1699kb | Incorect | 0 |
9 | 167ms | 2093kb | Incorect | 0 |
10 | 78ms | 1306kb | OK | 10 |
Punctaj total | 10 |