Borderou de evaluare (job #2284606)

Utilizator AntoniuFicAntoniu Ficard AntoniuFic Data 17 noiembrie 2018 11:55:02
Problema Potrivirea sirurilor Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:13:2: error: 'ifstream' was not declared in this scope ifstream f("strmatch.in"); ^~~~~~~~ main.cpp:13:2: note: suggested alternative: In file included from /usr/include/c++/6/ios:38:0, from /usr/include/c++/6/istream:38, from /usr/include/c++/6/fstream:38, from main.cpp:1: /usr/include/c++/6/iosfwd:162:34: note: 'std::ifstream' typedef basic_ifstream<char> ifstream; ^~~~~~~~ main.cpp:14:2: error: 'ofstream' was not declared in this scope ofstream g("strmatch.out"); ^~~~~~~~ main.cpp:14:2: note: suggested alternative: In file included from /usr/include/c++/6/ios:38:0, from /usr/include/c++/6/istream:38, from /usr/include/c++/6/fstream:38, from main.cpp:1: /usr/include/c++/6/iosfwd:165:34: note: 'std::ofstream' typedef basic_ofstream<char> ofstream; ^~~~~~~~ main.cpp:15:2: error: 'f' was not declared in this scope f.getline(a, 2000000); ^ main.cpp:30:3: error: 'g' was not declared in this scope g<<0<<endl; ^ main.cpp:30:9: error: 'endl' was not declared in this scope g<<0<<endl; ^~~~ main.cpp:30:9: note: suggested alternative: In file included from /usr/include/c++/6/istream:39:0, from /usr/include/c++/6/fstream:38, from main.cpp:1: /usr/include/c++/6/ostream:590:5: note: 'std::endl' endl(basic_ostream<_CharT, _Traits>& __os) ^~~~ main.cpp:46:2: error: 'g' was not declared in this scope g<<nr; ^ Non zero exit status: 1

Ceva nu functioneaza?