Pagini recente » Borderou de evaluare (job #828476) | Borderou de evaluare (job #1898327) | Borderou de evaluare (job #1594274) | Borderou de evaluare (job #1161948) | Borderou de evaluare (job #2721617)
Borderou de evaluare (job #2721617)
Raport evaluator
Compilare:
main.cpp:9:22: warning: overflow in implicit constant conversion [-Woverflow]
const int MAXRANGE = 1e18; /// poate fi o problema aici
^~~~
main.cpp: In function 'long long int numarAparitii(int, long long int, char)':
main.cpp:39:36: warning: array subscript has type 'char' [-Wchar-subscripts]
return frecvLit[pos][cautat];
^
main.cpp:51:56: warning: array subscript has type 'char' [-Wchar-subscripts]
val += frecvLitSecv[depth - 1][caps(cautat)];
^
main.cpp:55:50: warning: array subscript has type 'char' [-Wchar-subscripts]
val += frecvLitSecv[depth - 1][cautat];
^
main.cpp: In function 'int main()':
main.cpp:117:25: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
in >> l >> q >> sir + 1;
~~~~^~~
main.cpp:157:91: warning: array subscript has type 'char' [-Wchar-subscripts]
frecvLitSecv[i][j] = 2 * (frecvLitSecv[i - 1][j] + frecvLitSecv[i - 1][caps(j)]);
^
main.cpp:162:91: warning: array subscript has type 'char' [-Wchar-subscripts]
frecvLitSecv[i][j] = 2 * (frecvLitSecv[i - 1][j] + frecvLitSecv[i - 1][caps(j)]);
^
main.cpp:157: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:155: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 | Corect | 5 |
3 | 3ms | 262kb | Corect | 5 |
4 | 3ms | 262kb | Corect | 5 |
5 | 37ms | 1572kb | Corect | 5 |
6 | 42ms | 2359kb | Corect | 5 |
7 | 39ms | 2883kb | Corect | 5 |
8 | 54ms | 3407kb | Corect | 5 |
9 | 6ms | 1179kb | Corect | 5 |
10 | 7ms | 1572kb | Corect | 5 |
11 | 7ms | 1048kb | Partial corect | 2 |
12 | 9ms | 1441kb | Partial corect | 2 |
13 | 90ms | 10354kb | Corect | 5 |
14 | 107ms | 17694kb | Corect | 5 |
15 | 151ms | 34865kb | Corect | 5 |
16 | 167ms | 42205kb | Partial corect | 2 |
17 | 204ms | 44695kb | Partial corect | 2 |
18 | 268ms | 47185kb | Partial corect | 2 |
19 | 267ms | 49676kb | Partial corect | 2 |
Punctaj total | 82 |