Borderou de evaluare (job #1415181)

Utilizator govoGovoreanu Valentin govo Data 3 aprilie 2015 21:19:25
Problema CMMDC 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:7:1: error: ‘ifstream’ was not declared in this scope ifstream f("cmmdc.in"); ^ user.cpp:7:1: note: suggested alternative: In file included from /usr/include/c++/4.8/ios:38:0, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from user.cpp:1: /usr/include/c++/4.8/iosfwd:157:34: note: ‘std::ifstream’ typedef basic_ifstream<char> ifstream; ^ user.cpp:7:10: error: expected ‘;’ before ‘f’ ifstream f("cmmdc.in"); ^ user.cpp:8:1: error: ‘f’ was not declared in this scope f>>a>>b; ^ user.cpp:14:1: error: ‘g’ was not declared in this scope g<<b<<endl; ^ user.cpp:14:7: error: ‘endl’ was not declared in this scope g<<b<<endl; ^ user.cpp:14:7: note: suggested alternative: In file included from /usr/include/c++/4.8/iostream:39:0, from user.cpp:1: /usr/include/c++/4.8/ostream:564:5: note: ‘std::endl’ endl(basic_ostream<_CharT, _Traits>& __os) ^ user.cpp:15:1: error: ‘ofstream’ was not declared in this scope ofstream g("cmmdc.out"); ^ user.cpp:15:1: note: suggested alternative: In file included from /usr/include/c++/4.8/ios:38:0, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from user.cpp:1: /usr/include/c++/4.8/iosfwd:160:34: note: ‘std::ofstream’ typedef basic_ofstream<char> ofstream; ^ user.cpp:15:10: error: expected ‘;’ before ‘g’ ofstream g("cmmdc.out"); ^

Ceva nu functioneaza?