Borderou de evaluare (job #3140998)

Utilizator verde.cristian2005Verde Flaviu-Cristian verde.cristian2005 Data 11 iulie 2023 18:28:21
Problema Cautare binara Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:30:17: error: 'cout' was not declared in this scope 30 | cout << r << '\n'; | ^~~~ main.cpp:2:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? 1 | #include <fstream> +++ |+#include <iostream> 2 | using namespace std; main.cpp:32:17: error: 'cout' was not declared in this scope 32 | cout << "-1\n"; | ^~~~ main.cpp:32:17: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? main.cpp:44:13: error: 'cout' was not declared in this scope 44 | cout << r << '\n'; | ^~~~ main.cpp:44:13: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? main.cpp:56:13: error: 'cout' was not declared in this scope 56 | cout << r + 1 << '\n'; | ^~~~ main.cpp:56:13: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? Non zero exit status: 1

Ceva nu functioneaza?