Borderou de evaluare (job #1702821)

Utilizator ionut98Bejenariu Ionut Daniel ionut98 Data 15 mai 2016 16:31:34
Problema Text4 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:1: error: ‘ifstream’ does not name a type ifstream fin("text4.in"); ^ user.cpp:7:1: error: ‘ofstream’ does not name a type ofstream fout("text4.out"); ^ user.cpp: In function ‘void afiseaza_linie(int)’: user.cpp:15:9: error: ‘fout’ was not declared in this scope fout<<cuv[i]<<' '; ^ user.cpp:23:13: error: ‘fout’ was not declared in this scope fout<<cuv[i]; ^ user.cpp:34:7: error: ‘fout’ was not declared in this scope fout<<cuv[nrl-1]<<endl; ^ user.cpp:34:25: error: ‘endl’ was not declared in this scope fout<<cuv[nrl-1]<<endl; ^ user.cpp:34:25: note: suggested alternative: In file included from /usr/include/c++/4.8/istream:39:0, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/c++/4.8/ostream:564:5: note: ‘std::endl’ endl(basic_ostream<_CharT, _Traits>& __os) ^ user.cpp:36:7: error: ‘fout’ was not declared in this scope fout<<endl; ^ user.cpp:36:13: error: ‘endl’ was not declared in this scope fout<<endl; ^ user.cpp:36:13: note: suggested alternative: In file included from /usr/include/c++/4.8/istream:39:0, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/c++/4.8/ostream:564:5: note: ‘std::endl’ endl(basic_ostream<_CharT, _Traits>& __os) ^ user.cpp: In function ‘int main()’: user.cpp:67:5: error: ‘fin’ was not declared in this scope fin>>Max; ^

Ceva nu functioneaza?