Borderou de evaluare (job #2868853)

Utilizator gabriel.9619Gabriel Stefan Tita gabriel.9619 Data 11 martie 2022 11:06:11
Problema Caps Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 46

Raport evaluator

Compilare: main.cpp: In function 'char cod(char)': main.cpp:23:9: warning: variable 'c' set but not used [-Wunused-but-set-variable] 23 | int c; | ^ main.cpp: In function 'long long int divimp2(long long int, long long int, int, char)': main.cpp:86:22: warning: array subscript has type 'char' [-Wchar-subscripts] 86 | return fr[cod(ch)][n]; | ~~~^~~~ main.cpp:96:27: warning: array subscript has type 'char' [-Wchar-subscripts] 96 | return d[nr-1][cod(ch)]+divimp2(n-p/4, p/4, nr-1, invers(ch)); | ~~~^~~~ main.cpp:101:27: warning: array subscript has type 'char' [-Wchar-subscripts] 101 | return d[nr-1][cod(ch)]+d[nr-1][cod(invers(ch))]+divimp2(n-p/2, p/4, nr-1, invers(ch)); | ~~~^~~~ main.cpp:101:44: warning: array subscript has type 'char' [-Wchar-subscripts] 101 | return d[nr-1][cod(ch)]+d[nr-1][cod(invers(ch))]+divimp2(n-p/2, p/4, nr-1, invers(ch)); | ~~~^~~~~~~~~~~~ main.cpp:105:27: warning: array subscript has type 'char' [-Wchar-subscripts] 105 | return d[nr-1][cod(ch)]+2*d[nr-1][cod(invers(ch))]+divimp2(n-3*p/4, p/4, nr-1, ch); | ~~~^~~~ main.cpp:105:46: warning: array subscript has type 'char' [-Wchar-subscripts] 105 | return d[nr-1][cod(ch)]+2*d[nr-1][cod(invers(ch))]+divimp2(n-3*p/4, p/4, nr-1, ch); | ~~~^~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:114:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses] 114 | fin>>x+1; | ~^~ main.cpp:117:15: warning: array subscript has type 'char' [-Wchar-subscripts] 117 | fr[cod(x[i])][i]++; | ~~~^~~~~~ main.cpp:118:17: warning: array subscript has type 'char' [-Wchar-subscripts] 118 | d[0][cod(x[i])]++; | ~~~^~~~~~ main.cpp:144:23: warning: 'ok' may be used uninitialized in this function [-Wmaybe-uninitialized] 144 | char ch=divimp(n, p, ok); | ~~~~~~^~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
16ms6561kbCorect10
26ms4567kbPartial corect2
36ms4677kbPartial corect2
415ms21270kbPartial corect2
538ms21454kbPartial corect2
643ms21504kbPartial corect2
748ms21585kbPartial corect2
853ms21602kbPartial corect2
914ms21274kbPartial corect2
1014ms21278kbPartial corect2
1113ms21282kbPartial corect2
1218ms21286kbPartial corect2
1364ms8372kbPartial corect2
1480ms21860kbPartial corect2
1599ms22073kbPartial corect2
16123ms22269kbPartial corect2
17146ms22323kbPartial corect2
18171ms22355kbPartial corect2
19175ms22372kbPartial corect2
Punctaj total46

Ceva nu functioneaza?