Borderou de evaluare (job #3261191)

Utilizator andu2006Alexandru Gheorghies andu2006 Data 4 decembrie 2024 17:33:21
Problema Coduri Huffman Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 20

Raport evaluator

Compilare: In function 'int getdigits(long long int)', inlined from 'int getdigits(long long int)' at main.cpp:26:5: main.cpp:30:29: warning: array subscript 1000000000000000 is above array bounds of 'int [100000]' [-Warray-bounds] 30 | return e10*3+cntdigits[n]; | ~~~~~~~~~~~^ main.cpp: In function 'int getdigits(long long int)': main.cpp:25:5: note: while referencing 'cntdigits' 25 | int cntdigits[p10]; | ^~~~~~~~~ In function 'int getdigits(long long int)', inlined from 'int getdigits(long long int)' at main.cpp:26:5: main.cpp:29:47: warning: array subscript 10000000000 is above array bounds of 'int [100000]' [-Warray-bounds] 29 | if(n<p10*p10*p10) return e10*2+cntdigits[n]; | ~~~~~~~~~~~^ main.cpp: In function 'int getdigits(long long int)': main.cpp:25:5: note: while referencing 'cntdigits' 25 | int cntdigits[p10]; | ^~~~~~~~~ main.cpp:28:41: warning: array subscript 100000 is above array bounds of 'int [100000]' [-Warray-bounds] 28 | if(n<p10*p10) return e10+cntdigits[n]; | ~~~~~~~~~~~^ main.cpp:25:5: note: while referencing 'cntdigits' 25 | int cntdigits[p10]; | ^~~~~~~~~ In function 'int getdigits(long long int)', inlined from 'int getdigits(long long int)' at main.cpp:26:5, inlined from 'void writell(long long int)' at main.cpp:38:29, inlined from 'void writell(long long int)' at main.cpp:32:6: main.cpp:30:29: warning: array subscript 1000000000000000 is above array bounds of 'int [100000]' [-Warray-bounds] 30 | return e10*3+cntdigits[n]; | ~~~~~~~~~~~^ main.cpp: In function 'void writell(long long int)': main.cpp:25:5: note: while referencing 'cntdigits' 25 | int cntdigits[p10]; | ^~~~~~~~~ In function 'int getdigits(long long int)', inlined from 'int getdigits(long long int)' at main.cpp:26:5, inlined from 'void writell(long long int)' at main.cpp:38:29, inlined from 'void writell(long long int)' at main.cpp:32:6: main.cpp:29:47: warning: array subscript 10000000000 is above array bounds of 'int [100000]' [-Warray-bounds] 29 | if(n<p10*p10*p10) return e10*2+cntdigits[n]; | ~~~~~~~~~~~^ main.cpp: In function 'void writell(long long int)': main.cpp:25:5: note: while referencing 'cntdigits' 25 | int cntdigits[p10]; | ^~~~~~~~~ In function 'int getdigits(long long int)', inlined from 'void writell(long long int)' at main.cpp:38:29, inlined from 'void writell(long long int)' at main.cpp:32:6: main.cpp:28:41: warning: array subscript 100000 is above array bounds of 'int [100000]' [-Warray-bounds]
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms819kbOK!5
20ms823kbOK!5
30ms819kbOK!5
40ms819kbOK!5
511ms1024kbKilled by Signal 110
611ms1044kbKilled by Signal 110
78ms1593kbKilled by Signal 110
812ms1630kbKilled by Signal 110
99ms3035kbKilled by Signal 110
109ms3092kbKilled by Signal 110
1114ms4476kbKilled by Signal 110
1214ms4476kbKilled by Signal 110
1314ms8105kbKilled by Signal 110
1421ms18935kbKilled by Signal 110
1526ms29777kbKilled by Signal 110
1627ms29790kbKilled by Signal 110
1728ms33329kbKilled by Signal 110
1829ms33361kbKilled by Signal 110
1931ms36945kbKilled by Signal 110
2031ms36929kbKilled by Signal 110
Punctaj total20

Ceva nu functioneaza?