Borderou de evaluare (job #1566204)

Utilizator Irina96Dumea Irina Irina96 Data 11 ianuarie 2016 20:55:35
Problema K1 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void parcurgere()’: user.cpp:196:5: error: ‘ofstream’ was not declared in this scope ofstream f ("k1.out"); ^ user.cpp:196: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:196:14: error: expected ‘;’ before ‘f’ ofstream f ("k1.out"); ^ user.cpp:197:5: error: ‘f’ was not declared in this scope f<<S; ^ user.cpp: In function ‘void parcurgere2()’: user.cpp:270:5: error: ‘ofstream’ was not declared in this scope ofstream f ("k1.out"); ^ user.cpp:270: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:270:14: error: expected ‘;’ before ‘f’ ofstream f ("k1.out"); ^ user.cpp:271:5: error: ‘f’ was not declared in this scope f<<S; ^ user.cpp: In function ‘void citire()’: user.cpp:277:5: error: ‘ifstream’ was not declared in this scope ifstream f ("k1.in"); ^ user.cpp:277: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:277:14: error: expected ‘;’ before ‘f’ ifstream f ("k1.in");

Ceva nu functioneaza?