Borderou de evaluare (job #1047318)

Utilizator raskolnikov.bbhrgfvwrhw raskolnikov.bb Data 4 decembrie 2013 11:19:24
Problema Text 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:6:1: error: ‘ifstream’ was not declared in this scope ifstream fin("text.in"); ^ user.cpp:6:1: 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/ostream:38, from /usr/local/include/c++/4.8.0/iostream:39, from user.cpp:1: /usr/local/include/c++/4.8.0/iosfwd:157:34: note: ‘std::ifstream’ typedef basic_ifstream<char> ifstream; ^ user.cpp:6:10: error: expected ‘;’ before ‘fin’ ifstream fin("text.in"); ^ user.cpp:7:1: error: ‘ofstream’ was not declared in this scope ofstream fout("text.out"); ^ user.cpp:7:1: 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/ostream:38, from /usr/local/include/c++/4.8.0/iostream:39, from user.cpp:1: /usr/local/include/c++/4.8.0/iosfwd:160:34: note: ‘std::ofstream’ typedef basic_ofstream<char> ofstream; ^ user.cpp:7:10: error: expected ‘;’ before ‘fout’ ofstream fout("text.out"); ^ user.cpp:10:1: error: ‘fin’ was not declared in this scope fin>>s; ^ user.cpp:13:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<strlen(s);i++) ^ user.cpp:21:1: error: ‘fout’ was not declared in this scope fout<<c/n<<endl; ^ user.cpp:21:12: error: ‘endl’ was not declared in this scope fout<<c/n<<endl; ^ user.cpp:21:12: note: suggested alternative: In file included from /usr/local/include/c++/4.8.0/iostream:39:0, from user.cpp:1: /usr/local/include/c++/4.8.0/ostream:564:5: note: ‘std::endl’ endl(basic_ostream<_CharT, _Traits>& __os) ^

Ceva nu functioneaza?