Borderou de evaluare (job #2028880)

Utilizator Mihai9Oniga Mihai Mihai9 Data 28 septembrie 2017 19:49:23
Problema Secventa Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:4:1: error: ‘ifstream’ was not declared in this scope ifstream f("secventa.in"); ^ user.cpp:4:1: note: suggested alternative: In file included from /usr/include/c++/4.8/ios:38:0, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/c++/4.8/iosfwd:157:34: note: ‘std::ifstream’ typedef basic_ifstream<char> ifstream; ^ user.cpp:4:10: error: expected ‘;’ before ‘f’ ifstream f("secventa.in"); ^ user.cpp:5:1: error: ‘ofstream’ was not declared in this scope ofstream g("secventa.out"); ^ user.cpp:5:1: note: suggested alternative: In file included from /usr/include/c++/4.8/ios:38:0, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/c++/4.8/iosfwd:160:34: note: ‘std::ofstream’ typedef basic_ofstream<char> ofstream; ^ user.cpp:5:10: error: expected ‘;’ before ‘g’ ofstream g("secventa.out"); ^ user.cpp:6:1: error: ‘f’ was not declared in this scope f>>n>>k; ^ user.cpp:15:1: error: ‘g’ was not declared in this scope g<<dr-k+1<<' '<<dr<<" "<<max; ^

Ceva nu functioneaza?