Borderou de evaluare (job #950709)

Utilizator Johny_Depp22Johnny Depp Johny_Depp22 Data 17 mai 2013 17:09:35
Problema Pluricex 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:14:2: error: ‘ofstream’ was not declared in this scope ofstream g("pluricex.out"); ^ user.cpp:14: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:2: /usr/local/include/c++/4.8.0/iosfwd:160:34: note: ‘std::ofstream’ typedef basic_ofstream<char> ofstream; ^ user.cpp:14:11: error: expected ‘;’ before ‘g’ ofstream g("pluricex.out"); ^ user.cpp:16:2: error: ‘g’ was not declared in this scope g.close(); ^ user.cpp: In function ‘void read()’: user.cpp:48:2: error: ‘ifstream’ was not declared in this scope ifstream f("pluricex.in"); ^ user.cpp:48: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:2: /usr/local/include/c++/4.8.0/iosfwd:157:34: note: ‘std::ifstream’ typedef basic_ifstream<char> ifstream; ^ user.cpp:48:11: error: expected ‘;’ before ‘f’ ifstream f("pluricex.in"); ^ user.cpp:49:2: error: ‘f’ was not declared in this scope f>>n>>k>>D; ^ user.cpp: In function ‘void write()’: user.cpp:64:5: error: ‘g’ was not declared in this scope g<<sol[i]<<' '; g<<sol[k]<<'\n'; ^ user.cpp:64:21: error: ‘g’ was not declared in this scope g<<sol[i]<<' '; g<<sol[k]<<'\n'; ^

Ceva nu functioneaza?