Borderou de evaluare (job #637362)

Utilizator avatar BunaLaInfo ...... BunaLaInfo IP ascuns
Problemă 3 și 5 (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 2 mar. 2022 11:10:54 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:21:9: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'? 21 | ifstream f("3si5.in"); | ^~~~~~~~ | std::ifstream In file included from /usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/ios:38, from /usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/istream:38, from /usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/fstream:38, from main.cpp:1: /usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/iosfwd:162:41: note: 'std::ifstream' declared here 162 | typedef basic_ifstream<char> ifstream; | ^~~~~~~~ main.cpp:22:9: error: 'f' was not declared in this scope 22 | f>>N; | ^ main.cpp:25:9: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'? 25 | ofstream g("3si5.out"); | ^~~~~~~~ | std::ofstream In file included from /usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/ios:38, from /usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/istream:38, from /usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/fstream:38, from main.cpp:1: /usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/iosfwd:165:41: note: 'std::ofstream' declared here 165 | typedef basic_ofstream<char> ofstream; | ^~~~~~~~ main.cpp:33:25: error: 'g' was not declared in this scope 33 | g<<x<<"\n"; | ^ main.cpp:36:25: error: 'g' was not declared in this scope 36 | g<<y<<"\n"; | ^ main.cpp:42:17: error: 'g' was not declared in this scope 42 | g<<x<<"\n"; | ^ main.cpp:47:17: error: 'g' was not declared in this scope 47 | g<<y<<"\n"; | ^ main.cpp:52:9: error: 'g' was not declared in this scope 52 | g.close(); | ^