Borderou de evaluare (job #1161304)

Utilizator sorynsooSorin Soo sorynsoo Data 31 martie 2014 10:11:55
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:19:1: error: ‘ofstream’ was not declared in this scope ofstream fout (OutFile); ^ user.cpp:19:1: note: suggested alternative: In file included from /usr/local/include/c++/4.8.0/ios:38:0, from /usr/local/include/c++/4.8.0/istream:38, from /usr/local/include/c++/4.8.0/fstream:38, from user.cpp:2: /usr/local/include/c++/4.8.0/iosfwd:160:34: note: ‘std::ofstream’ typedef basic_ofstream<char> ofstream; ^ user.cpp:19:10: error: expected ‘;’ before ‘fout’ ofstream fout (OutFile); ^ user.cpp: In function ‘void citire()’: user.cpp:38:2: error: ‘ifstream’ was not declared in this scope ifstream fin (InFile); ^ user.cpp:38:2: note: suggested alternative: In file included from /usr/local/include/c++/4.8.0/ios:38:0, from /usr/local/include/c++/4.8.0/istream:38, from /usr/local/include/c++/4.8.0/fstream:38, from user.cpp:2: /usr/local/include/c++/4.8.0/iosfwd:157:34: note: ‘std::ifstream’ typedef basic_ifstream<char> ifstream; ^ user.cpp:38:11: error: expected ‘;’ before ‘fin’ ifstream fin (InFile); ^ user.cpp:39:2: error: ‘fin’ was not declared in this scope fin>>n; ^ user.cpp: In function ‘void afisare()’: user.cpp:58:1: error: ‘ofstream’ was not declared in this scope ofstream fout(OutFile); ^ user.cpp:58:1: note: suggested alternative: In file included from /usr/local/include/c++/4.8.0/ios:38:0, from /usr/local/include/c++/4.8.0/istream:38, from /usr/local/include/c++/4.8.0/fstream:38, from user.cpp:2: /usr/local/include/c++/4.8.0/iosfwd:160:34: note: ‘std::ofstream’ typedef basic_ofstream<char> ofstream; ^ user.cpp:58:10: error: expected ‘;’ before ‘fout’ ofstream fout(OutFile); ^ user.cpp:59:1: error: ‘fout’ was not declared in this scope fout<<TMin<<'\n';

Ceva nu functioneaza?