Borderou de evaluare (job #975275)

Utilizator ScoobyDoo38Nita Adrian Valentin ScoobyDoo38 Data 19 iulie 2013 17:30:50
Problema Alee 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:9:2: error: ‘ifstream’ was not declared in this scope ifstream in("test.in"); ^ user.cpp:9: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:1: /usr/local/include/c++/4.8.0/iosfwd:157:34: note: ‘std::ifstream’ typedef basic_ifstream<char> ifstream; ^ user.cpp:9:11: error: expected ‘;’ before ‘in’ ifstream in("test.in"); ^ user.cpp:10:2: error: ‘ofstream’ was not declared in this scope ofstream out("test.out"); ^ user.cpp:10: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:1: /usr/local/include/c++/4.8.0/iosfwd:160:34: note: ‘std::ofstream’ typedef basic_ofstream<char> ofstream; ^ user.cpp:10:11: error: expected ‘;’ before ‘out’ ofstream out("test.out"); ^ user.cpp:14:2: error: ‘in’ was not declared in this scope in >> n >> m; ^ user.cpp:45:4: error: ‘out’ was not declared in this scope out << 0; ^ user.cpp:50:2: error: ‘out’ was not declared in this scope out << c; ^

Ceva nu functioneaza?