Borderou de evaluare (job #1341945)

Utilizator metrix007Lungu Ioan Adrian metrix007 Data 13 februarie 2015 11:56:09
Problema Checkin 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:20:1: error: ‘ofstream’ was not declared in this scope ofstream fout (OutFile); ^ user.cpp:20: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:2: /usr/include/c++/4.8/iosfwd:160:34: note: ‘std::ofstream’ typedef basic_ofstream<char> ofstream; ^ user.cpp:20:10: error: expected ‘;’ before ‘fout’ ofstream fout (OutFile); ^ user.cpp: In function ‘void citire()’: user.cpp:39:2: error: ‘ifstream’ was not declared in this scope ifstream fin (InFile); ^ user.cpp:39:2: 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:2: /usr/include/c++/4.8/iosfwd:157:34: note: ‘std::ifstream’ typedef basic_ifstream<char> ifstream; ^ user.cpp:39:11: error: expected ‘;’ before ‘fin’ ifstream fin (InFile); ^ user.cpp:40:2: error: ‘fin’ was not declared in this scope fin>>n; ^ user.cpp: In function ‘void afisare()’: user.cpp:59:1: error: ‘ofstream’ was not declared in this scope ofstream fout(OutFile); ^ user.cpp:59: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:2: /usr/include/c++/4.8/iosfwd:160:34: note: ‘std::ofstream’ typedef basic_ofstream<char> ofstream; ^ user.cpp:59:10: error: expected ‘;’ before ‘fout’ ofstream fout(OutFile); ^ user.cpp:60:1: error: ‘fout’ was not declared in this scope fout<<TMin<<'\n';

Ceva nu functioneaza?