Borderou de evaluare (job #1264394)

Utilizator stephanStefan stephan Data 15 noiembrie 2014 19:33:33
Problema CMMDC 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:8:2: error: ‘ifstream’ was not declared in this scope ifstream fin("cmmdc.in"); ^ user.cpp:8:2: note: suggested alternative: In file included from /usr/include/c++/4.8/ios:38:0, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from user.cpp:1: /usr/include/c++/4.8/iosfwd:157:34: note: ‘std::ifstream’ typedef basic_ifstream<char> ifstream; ^ user.cpp:8:11: error: expected ‘;’ before ‘fin’ ifstream fin("cmmdc.in"); ^ user.cpp:9:2: error: ‘ofstream’ was not declared in this scope ofstream fout("cmmdc.out"); ^ user.cpp:9:2: note: suggested alternative: In file included from /usr/include/c++/4.8/ios:38:0, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from user.cpp:1: /usr/include/c++/4.8/iosfwd:160:34: note: ‘std::ofstream’ typedef basic_ofstream<char> ofstream; ^ user.cpp:9:11: error: expected ‘;’ before ‘fout’ ofstream fout("cmmdc.out"); ^ user.cpp:11:2: error: ‘fin’ was not declared in this scope fin >> a; ^ user.cpp:23:2: error: ‘fout’ was not declared in this scope fout << b; ^

Ceva nu functioneaza?