Borderou de evaluare (job #1523353)

Utilizator Andrei_21Beleca Andrei Andrei_21 Data 12 noiembrie 2015 17:20:01
Problema Cifra 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:5:2: error: ‘ifstream’ was not declared in this scope {ifstream f("cifra.in"); ^ user.cpp:5: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:5:11: error: expected ‘;’ before ‘f’ {ifstream f("cifra.in"); ^ user.cpp:6:1: error: ‘ofstream’ was not declared in this scope ofstream g("cifra.out"); ^ user.cpp:6:1: 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:6:10: error: expected ‘;’ before ‘g’ ofstream g("cifra.out"); ^ user.cpp:9:1: error: ‘f’ was not declared in this scope f>>t; ^ user.cpp:13:11: error: ‘strlen’ was not declared in this scope m=strlen(n); ^ user.cpp:17:16: error: ‘strcpy’ was not declared in this scope strcpy(n,n+m-2); ^ user.cpp:28:1: error: ‘g’ was not declared in this scope g<<s<<'\n'; ^ user.cpp:31:1: error: ‘g’ was not declared in this scope g.close(); ^

Ceva nu functioneaza?