Borderou de evaluare (job #1038020)

Utilizator thereauFMI Sandu Robert Stelian thereau Data 20 noiembrie 2013 22:22:11
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:5:2: error: ‘ifstream’ was not declared in this scope ifstream citire("adunare.in"); ^ user.cpp:5: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:5:11: error: expected ‘;’ before ‘citire’ ifstream citire("adunare.in"); ^ user.cpp:6:2: error: ‘ofstream’ was not declared in this scope ofstream scriere("afunare.out"); ^ user.cpp:6: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:6:11: error: expected ‘;’ before ‘scriere’ ofstream scriere("afunare.out"); ^ user.cpp:7:2: error: ‘citire’ was not declared in this scope citire >> a >> b; ^ user.cpp:8:2: error: ‘scriere’ was not declared in this scope scriere << a + b; ^ user.cpp:11:1: error: expected ‘;’ before ‘}’ token } ^

Ceva nu functioneaza?