Borderou de evaluare (job #617756)

Utilizator avatar VBMD Burcovski Victor VBMD IP ascuns
Problemă Căutare binară Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 24 nov. 2021 12:21:57 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int bsearch1(int, int, int)': main.cpp:27:12: warning: unused variable 'n' [-Wunused-variable] 27 | int m, n = u; | ^ main.cpp: In function 'int main()': main.cpp:61:9: error: 'ifstream' was not declared in this scope 61 | ifstream cin("cautbin.in"); | ^~~~~~~~ main.cpp:4:1: note: 'std::ifstream' is defined in header '<fstream>'; did you forget to '#include <fstream>'? 3 | #include <stdlib.h> +++ |+#include <fstream> 4 | #define N 100010 main.cpp:62:9: error: 'ofstream' was not declared in this scope 62 | ofstream cout("cautbin.out"); | ^~~~~~~~ main.cpp:62:9: note: 'std::ofstream' is defined in header '<fstream>'; did you forget to '#include <fstream>'? main.cpp:65:5: error: 'cin' was not declared in this scope 65 | cin>>n; | ^~~ main.cpp:4:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'? 3 | #include <stdlib.h> +++ |+#include <iostream> 4 | #define N 100010 main.cpp:78:14: error: 'cout' was not declared in this scope 78 | cout<<bsearch0(1,n,val); | ^~~~ main.cpp:78:14: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? main.cpp:81:14: error: 'cout' was not declared in this scope 81 | cout<<bsearch1(1,n,val); | ^~~~ main.cpp:81:14: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? main.cpp:84:14: error: 'cout' was not declared in this scope 84 | cout<<bsearch2(1,n,val); | ^~~~ main.cpp:84:14: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?