Pagini recente » Borderou de evaluare (job #3154305) | Borderou de evaluare (job #2597731) | Borderou de evaluare (job #814862) | Borderou de evaluare (job #1170223) | Borderou de evaluare (job #2721611)
Borderou de evaluare (job #2721611)
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:48:46: warning: array subscript has type 'char' [-Wchar-subscripts]
val += frecvLitSecv[depth - 1][cautat];
^
main.cpp:52:52: warning: array subscript has type 'char' [-Wchar-subscripts]
val += frecvLitSecv[depth - 1][caps(cautat)];
^
main.cpp:56:52: warning: array subscript has type 'char' [-Wchar-subscripts]
val += frecvLitSecv[depth - 1][caps(cautat)];
^
main.cpp: In function 'int main()':
main.cpp:117:25: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
in >> l >> q >> sir + 1;
~~~~^~~
main.cpp:156:91: warning: array subscript has type 'char' [-Wchar-subscripts]
frecvLitSecv[i][j] = 2 * (frecvLitSecv[i - 1][j] + frecvLitSecv[i - 1][caps(j)]);
^
main.cpp:161:91: warning: array subscript has type 'char' [-Wchar-subscripts]
frecvLitSecv[i][j] = 2 * (frecvLitSecv[i - 1][j] + frecvLitSecv[i - 1][caps(j)]);
^
main.cpp:156: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:154:29: note: within this loop
for (int j = 'a'; j <= 'z'; j++)
~~^~~~~~
main.cpp:144:43: warning: iteration 25 invokes undefined behavior [-Waggressive-loop-optimizations]
frecvLitSecv[1][i] = frecvLit[l][i];
~~~~~~~~~~~~~^
main.cpp:142:25: note: within this loop
for (int i = 'a'; i <= 'z'; i++)
~~^~~~~~
main.cpp:123:47: warning: iteration 25 invokes undefined behavior [-Waggressive-loop-optimizations]
frecvLit[i][j] = frecvLit[i - 1][j];
~~~~~~~~~~~~~~~~~^
main.cpp:121: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 | 42ms | 2359kb | Partial corect | 2 |
7 | 48ms | 2883kb | Partial corect | 2 |
8 | 54ms | 3407kb | Corect | 5 |
9 | 6ms | 1179kb | Corect | 5 |
10 | 8ms | 1703kb | Partial corect | 2 |
11 | 7ms | 1048kb | Corect | 5 |
12 | 9ms | 1572kb | Corect | 5 |
13 | 90ms | 10354kb | Corect | 5 |
14 | 116ms | 17694kb | Partial corect | 2 |
15 | 149ms | 34865kb | Partial corect | 2 |
16 | 186ms | 42336kb | Corect | 5 |
17 | 202ms | 44957kb | Corect | 5 |
18 | 242ms | 47579kb | Corect | 5 |
19 | 254ms | 50069kb | Corect | 5 |
Punctaj total | 79 |