Borderou de evaluare (job #2824473)

Utilizator Vlad_NistorNIstor Vlad Vlad_Nistor Data 2 ianuarie 2022 14:24:24
Problema A+B Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:5:5: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'? 5 | ofstream cout("adunare.out"); | ^~~~~~~~ | std::ofstream In file included from /usr/include/c++/10/ios:38, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from main.cpp:1: /usr/include/c++/10/iosfwd:165:34: note: 'std::ofstream' declared here 165 | typedef basic_ofstream<char> ofstream; | ^~~~~~~~ main.cpp:6:5: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'? 6 | ifstream cin("adunare.in"); | ^~~~~~~~ | std::ifstream In file included from /usr/include/c++/10/ios:38, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from main.cpp:1: /usr/include/c++/10/iosfwd:162:34: note: 'std::ifstream' declared here 162 | typedef basic_ifstream<char> ifstream; | ^~~~~~~~ main.cpp:8:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'? 8 | cin >> m >> n; | ^~~ | std::cin In file included from main.cpp:1: /usr/include/c++/10/iostream:60:18: note: 'std::cin' declared here 60 | extern istream cin; /// Linked to standard input | ^~~ main.cpp:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 9 | cout << m + n; | ^~~~ | std::cout In file included from main.cpp:1: /usr/include/c++/10/iostream:61:18: note: 'std::cout' declared here 61 | extern ostream cout; /// Linked to standard output | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?