Borderou de evaluare (job #1118206)

Utilizator paul.chPaul Chelarescu paul.ch Data 24 februarie 2014 08:53:10
Problema Cezar Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void citire()’: user.cpp:28:2: error: ‘ifstream’ was not declared in this scope ifstream f("cezar.in"); ^ user.cpp:28: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:1: /usr/local/include/c++/4.8.0/iosfwd:157:34: note: ‘std::ifstream’ typedef basic_ifstream<char> ifstream; ^ user.cpp:28:11: error: expected ‘;’ before ‘f’ ifstream f("cezar.in"); ^ user.cpp:29:2: error: ‘f’ was not declared in this scope f>>n>>k; ^ user.cpp: In function ‘void desfrunzire()’: user.cpp:45:24: warning: unused variable ‘min’ [-Wunused-variable] { int ii,i,j,pmin;long min; ^ user.cpp: At global scope: user.cpp:63:11: error: ‘::main’ must return ‘int’ void main() ^ user.cpp: In function ‘int main()’: user.cpp:66:3: error: ‘ofstream’ was not declared in this scope ofstream f("cezar.out"); ^ user.cpp:66:3: 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:1: /usr/local/include/c++/4.8.0/iosfwd:160:34: note: ‘std::ofstream’ typedef basic_ofstream<char> ofstream; ^ user.cpp:66:12: error: expected ‘;’ before ‘f’ ofstream f("cezar.out"); ^ user.cpp:67:3: error: ‘f’ was not declared in this scope f<<s<<'\n'; ^

Ceva nu functioneaza?