Borderou de evaluare (job #2721618)

Utilizator Razvan48Capatina Razvan Nicolae Razvan48 Data 12 martie 2021 00:38:00
Problema Caps Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp:9:28: warning: overflow in implicit constant conversion [-Woverflow] const long long MAXRANGE = 1e19; /// 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
191ms49152kbKilled by Signal 110
291ms49020kbKilled by Signal 110
391ms49152kbKilled by Signal 110
492ms49152kbKilled by Signal 110
592ms49152kbKilled by Signal 110
6100ms49152kbKilled by Signal 110
778ms49152kbKilled by Signal 110
892ms49152kbKilled by Signal 110
994ms49152kbKilled by Signal 110
1090ms49152kbKilled by Signal 110
1177ms49152kbKilled by Signal 110
1291ms49152kbKilled by Signal 110
1395ms49152kbKilled by Signal 110
1499ms49152kbKilled by Signal 110
15109ms49152kbKilled by Signal 110
16112ms49152kbKilled by Signal 110
17116ms49152kbKilled by Signal 110
18116ms49152kbKilled by Signal 110
19118ms49152kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?