Borderou de evaluare (job #980423)

Utilizator mateidanutDanut Gabriel Matei mateidanut Data 4 august 2013 17:11:54
Problema Prieteni Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:2:1: error: ‘ifstream’ does not name a type ifstream fin("prieteni.in"); ^ user.cpp:3:1: error: ‘ofstream’ does not name a type ofstream fout("prieteni.out"); ^ user.cpp: In function ‘void cit()’: user.cpp:37:2: error: ‘fin’ was not declared in this scope fin>>n; ^ user.cpp: In function ‘void scr()’: user.cpp:97:4: error: ‘fout’ was not declared in this scope fout<<b[j][i]<<" "; ^ user.cpp:100:3: error: ‘fout’ was not declared in this scope fout<<endl; ^ user.cpp:100:9: error: ‘endl’ was not declared in this scope fout<<endl; ^ user.cpp:100:9: note: suggested alternative: In file included from /usr/local/include/c++/4.8.0/istream:39:0, from /usr/local/include/c++/4.8.0/fstream:38, from user.cpp:1: /usr/local/include/c++/4.8.0/ostream:564:5: note: ‘std::endl’ endl(basic_ostream<_CharT, _Traits>& __os) ^ user.cpp:102:2: error: ‘fout’ was not declared in this scope fout<<timp; ^ user.cpp: In function ‘int main()’: user.cpp:110:2: error: ‘fout’ was not declared in this scope fout.close(); ^

Ceva nu functioneaza?