Pagini recente » Borderou de evaluare (job #1627400) | Borderou de evaluare (job #2849123) | Borderou de evaluare (job #1721954) | Borderou de evaluare (job #1011594) | Borderou de evaluare (job #2721613)
Borderou de evaluare (job #2721613)
Raport evaluator
Compilare:
main.cpp: In function 'long long int numarAparitii(int, long long int, char)':
main.cpp:38:36: warning: array subscript has type 'char' [-Wchar-subscripts]
return frecvLit[pos][cautat];
^
main.cpp:50:56: warning: array subscript has type 'char' [-Wchar-subscripts]
val += frecvLitSecv[depth - 1][caps(cautat)];
^
main.cpp:54:50: warning: array subscript has type 'char' [-Wchar-subscripts]
val += frecvLitSecv[depth - 1][cautat];
^
main.cpp: In function 'int main()':
main.cpp:116:25: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
in >> l >> q >> sir + 1;
~~~~^~~
main.cpp:155:91: warning: array subscript has type 'char' [-Wchar-subscripts]
frecvLitSecv[i][j] = 2 * (frecvLitSecv[i - 1][j] + frecvLitSecv[i - 1][caps(j)]);
^
main.cpp:160:91: warning: array subscript has type 'char' [-Wchar-subscripts]
frecvLitSecv[i][j] = 2 * (frecvLitSecv[i - 1][j] + frecvLitSecv[i - 1][caps(j)]);
^
main.cpp:155:32: warning: iteration 25 invokes undefined behavior [-Waggressive-loop-optimizations]
frecvLitSecv[i][j] = 2 * (frecvLitSecv[i - 1][j] + frecvLitSecv[i - 1][caps(j)]);
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:153:29: note: within this loop
for (int j = 'a'; j <= 'z'; j++)
~~^~~~~~
main.cpp:143:43: warning: iteration 25 invokes undefined behavior [-Waggressive-loop-optimizations]
frecvLitSecv[1][i] = frecvLit[l][i];
~~~~~~~~~~~~~^
main.cpp:141:25: note: within this loop
for (int i = 'a'; i <= 'z'; i++)
~~^~~~~~
main.cpp:122:47: warning: iteration 25 invokes undefined behavior [-Waggressive-loop-optimizations]
frecvLit[i][j] = frecvLit[i - 1][j];
~~~~~~~~~~~~~~~~~^
main.cpp:120:29: note: within this loop
for (int j = 'a'; j <= 'z'; j++)
~~^~~~~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 2ms | 131kb | Corect | 10 |
| 2 | 2ms | 131kb | Partial corect | 2 |
| 3 | 3ms | 262kb | Corect | 5 |
| 4 | 3ms | 262kb | Partial corect | 2 |
| 5 | 37ms | 1572kb | Corect | 5 |
| 6 | 45ms | 2359kb | Partial corect | 2 |
| 7 | 48ms | 2883kb | Partial corect | 2 |
| 8 | 54ms | 3407kb | Corect | 5 |
| 9 | 6ms | 1179kb | Corect | 5 |
| 10 | 7ms | 1703kb | Partial corect | 2 |
| 11 | 7ms | 1048kb | Corect | 5 |
| 12 | 9ms | 1572kb | Corect | 5 |
| 13 | 89ms | 10354kb | Corect | 5 |
| 14 | 114ms | 17694kb | Partial corect | 2 |
| 15 | 142ms | 34865kb | Partial corect | 2 |
| 16 | 187ms | 42336kb | Corect | 5 |
| 17 | 222ms | 44957kb | Corect | 5 |
| 18 | 253ms | 47579kb | Corect | 5 |
| 19 | 257ms | 50069kb | Corect | 5 |
| Punctaj total | 79 |