Borderou de evaluare (job #617753)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Căutare binară | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 24 nov. 2021 12:14:32 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:1: error: 'ifstream' does not name a type
7 | ifstream cin("cautbin.in");
| ^~~~~~~~
main.cpp:8:1: error: 'ofstream' does not name a type
8 | ofstream cout("cautbin.out");
| ^~~~~~~~
main.cpp: In function 'int bsearch1(int, int, int)':
main.cpp:29:12: warning: unused variable 'n' [-Wunused-variable]
29 | int m, n = u;
| ^
main.cpp: In function 'int main()':
main.cpp:66:5: error: 'cin' was not declared in this scope
66 | 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:76:11: error: 'in' was not declared in this scope; did you mean 'n'?
76 | in>>tip>>val;
| ^~
| n
main.cpp:79:14: error: 'cout' was not declared in this scope
79 | cout<<bsearch0(1,n,val);
| ^~~~
main.cpp:79:14: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:82:14: error: 'cout' was not declared in this scope
82 | cout<<bsearch1(1,n,val);
| ^~~~
main.cpp:82:14: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
main.cpp:85:14: error: 'cout' was not declared in this scope
85 | cout<<bsearch2(1,n,val);
| ^~~~
main.cpp:85:14: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?