Borderou de evaluare (job #617794)

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 13:31:56 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int bsearch1(int, int, int)': main.cpp:26:12: warning: unused variable 'n' [-Wunused-variable] 26 | int m, n = u; | ^ main.cpp: In function 'int main()': main.cpp:63:9: error: 'ifstream' was not declared in this scope 63 | ifstream cin("cautbin.in"); | ^~~~~~~~ main.cpp:64:1: error: 'ofstream' was not declared in this scope 64 | ofstream cout("cautbin.out"); | ^~~~~~~~ main.cpp:65:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 65 | scanf("%d", &n); | ~~~~~^~~~~~~~~~ main.cpp:67:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 67 | scanf("%d", &v[i]); | ~~~~~^~~~~~~~~~~~~ main.cpp:69:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 69 | scanf("%d", &m); | ~~~~~^~~~~~~~~~ main.cpp:72:16: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 72 | scanf("%d%d", &tip, &val); | ~~~~~^~~~~~~~~~~~~~~~~~~~