Borderou de evaluare (job #1666095)

Utilizator iudean.bogdanIudean Bogdan iudean.bogdan Data 27 martie 2016 17:45:53
Problema A+B 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:11:2: error: ‘ifstream’ was not declared in this scope ifstream fileIn("adunare.in"); ^ user.cpp:11: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:5: /usr/include/c++/4.8/iosfwd:157:34: note: ‘std::ifstream’ typedef basic_ifstream<char> ifstream; ^ user.cpp:11:11: error: expected ‘;’ before ‘fileIn’ ifstream fileIn("adunare.in"); ^ user.cpp:12:2: error: ‘ofstream’ was not declared in this scope ofstream fileOut("adunare.out"); ^ user.cpp:12: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:5: /usr/include/c++/4.8/iosfwd:160:34: note: ‘std::ofstream’ typedef basic_ofstream<char> ofstream; ^ user.cpp:12:11: error: expected ‘;’ before ‘fileOut’ ofstream fileOut("adunare.out"); ^ user.cpp:14:2: error: ‘fileIn’ was not declared in this scope fileIn >> a; ^ user.cpp:17:2: error: ‘fileOut’ was not declared in this scope fileOut<< a + b; ^

Ceva nu functioneaza?