Borderou de evaluare (job #3340693)

Utilizator stefan210021Ungureanu Stefan stefan210021 Data 15 februarie 2026 19:38:26
Problema Cautare binara Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:74:11: warning: unused variable 'x' [-Wunused-variable] 74 | int i,x; | ^ main.cpp: In function 'int cautbin1(int)': main.cpp:45:12: warning: 'best_pos' may be used uninitialized [-Wmaybe-uninitialized] 45 | return best_pos; | ^~~~~~~~ main.cpp:29:19: note: 'best_pos' was declared here 29 | int st,dr,mij,best_pos; | ^~~~~~~~ main.cpp: In function 'int cautbin2(int)': main.cpp:66:12: warning: 'best_pos' may be used uninitialized [-Wmaybe-uninitialized] 66 | return best_pos; | ^~~~~~~~ main.cpp:50:19: note: 'best_pos' was declared here 50 | int st,dr,mij,best_pos; | ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:88:32: warning: 'best_pos' may be used uninitialized [-Wmaybe-uninitialized] 88 | fout<<cautbin2(x)<<"\n"; | ^~~~ main.cpp:50:19: note: 'best_pos' was declared here 50 | int st,dr,mij,best_pos; | ^~~~~~~~ main.cpp:86:32: warning: 'best_pos' may be used uninitialized [-Wmaybe-uninitialized] 86 | fout<<cautbin1(x)<<"\n"; | ^~~~ main.cpp:29:19: note: 'best_pos' was declared here 29 | int st,dr,mij,best_pos; | ^~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms303kbOK1010
20ms303kbOK1010
30ms303kbOK1010
41ms303kbOK1010
54ms303kbOK1020
614ms753kbOK10
724ms1138kbOK1040
824ms1118kbOK10
924ms1114kbOK10
1024ms1089kbOK10
Punctaj total100

Ceva nu functioneaza?