Borderou de evaluare (job #1391846)

Utilizator stefdascalescuStefan Dascalescu stefdascalescu Data 18 martie 2015 10:49:10
Problema Char Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void afis()’: user.cpp:7:5: error: ‘ofstream’ was not declared in this scope ofstream fout("char.out"); ^ user.cpp:7:5: 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:7:14: error: expected ‘;’ before ‘fout’ ofstream fout("char.out"); ^ user.cpp:8:5: error: ‘fout’ was not declared in this scope fout<<nr<<'\n'<<m; ^ user.cpp: In function ‘void cit()’: user.cpp:16:5: error: ‘ifstream’ was not declared in this scope ifstream fin("char.in"); ^ user.cpp:16:5: 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:16:14: error: expected ‘;’ before ‘fin’ ifstream fin("char.in"); ^ user.cpp:17:5: error: ‘fin’ was not declared in this scope fin>>n; ^

Ceva nu functioneaza?