Borderou de evaluare (job #617771)

Utilizator avatar blabla436387 bla bla blabla436387 IP ascuns
Problemă Căutare binară Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 24 nov. 2021 12:50:14 Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int bsearch1(int, int, int)': main.cpp:25:12: warning: unused variable 'n' [-Wunused-variable] 25 | int m, n = u; | ^ main.cpp: In function 'int main()': main.cpp:61:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 61 | freopen("cautbin.in","r",stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:62:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 62 | freopen("cautbin.out","w",stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:63:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 63 | scanf("%d", &n); | ~~~~~^~~~~~~~~~ main.cpp:65:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 65 | scanf("%d", &v[i]); | ~~~~~^~~~~~~~~~~~~ main.cpp:67:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 67 | scanf("%d", &m); | ~~~~~^~~~~~~~~~ main.cpp:70:16: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 70 | scanf("%d%d", &tip, &val); | ~~~~~^~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 131 kb OK 10
2 1 ms 131 kb OK 10
3 1 ms 131 kb OK 10
4 1 ms 131 kb OK 10
5 31 ms 262 kb OK 10
6 120 ms 380 kb OK 10
7 198 ms 643 kb OK 10
8 191 ms 638 kb OK 10
9 193 ms 638 kb OK 10
10 192 ms 643 kb OK 10
Punctaj total 100