Pagini recente » Borderou de evaluare (job #2085924) | Borderou de evaluare (job #1875274) | Borderou de evaluare (job #997608) | Borderou de evaluare (job #2529684)
Borderou de evaluare (job #2529684)
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:14:15: warning: array subscript has type 'char' [-Wchar-subscripts]
if (freq[c]) {
^
main.cpp:21:20: warning: array subscript has type 'char' [-Wchar-subscripts]
freq[first_letter]--;
^
main.cpp:22:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 2; i <= s.size(); i++) {
~~^~~~~~~~~~~
main.cpp:25:17: warning: array subscript has type 'char' [-Wchar-subscripts]
if (freq[c] && c != pred_letter) {
^
main.cpp:28:15: warning: array subscript has type 'char' [-Wchar-subscripts]
freq[c]--;
^
main.cpp:19:10: warning: 'first_letter' may be used uninitialized in this function [-Wmaybe-uninitialized]
out << first_letter;
^~~~~~~~~~~~
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 | 14ms | 524kb | Incorect | 0 |
6 | 39ms | 913kb | Incorect | 0 |
7 | 47ms | 1044kb | Incorect | 0 |
8 | 86ms | 1699kb | Incorect | 0 |
9 | 108ms | 2093kb | Incorect | 0 |
10 | 50ms | 1306kb | Incorect | 0 |
Punctaj total | 0 |