Borderou de evaluare (job #1231630)

Utilizator vladttturcuman vlad vladtt Data 21 septembrie 2014 10:47:21
Problema Jetoane 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:10:2: error: ‘ifstream’ was not declared in this scope ifstream f(inf); ^ user.cpp:10:2: note: suggested alternative: In file included from /usr/include/c++/4.8/ios:38:0, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/c++/4.8/iosfwd:157:34: note: ‘std::ifstream’ typedef basic_ifstream<char> ifstream; ^ user.cpp:10:11: error: expected ‘;’ before ‘f’ ifstream f(inf); ^ user.cpp:11:2: error: ‘ofstream’ was not declared in this scope ofstream g(outf); ^ user.cpp:11:2: note: suggested alternative: In file included from /usr/include/c++/4.8/ios:38:0, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/c++/4.8/iosfwd:160:34: note: ‘std::ofstream’ typedef basic_ofstream<char> ofstream; ^ user.cpp:11:11: error: expected ‘;’ before ‘g’ ofstream g(outf); ^ user.cpp:12:2: error: ‘f’ was not declared in this scope f>>m;f>>n; ^ user.cpp:22:14: error: ‘g’ was not declared in this scope if (i>nmax) g<<"0 0 -1\n"; ^ user.cpp:23:17: error: ‘g’ was not declared in this scope else if(i==j) g<<i<<" 0 -1\n"; ^ user.cpp:24:9: error: ‘g’ was not declared in this scope else{g<<i<<' '<<j<<' '; ^ user.cpp:36:2: error: ‘g’ was not declared in this scope g.close(); ^

Ceva nu functioneaza?