Borderou de evaluare (job #860503)

Utilizator avatar alexiunea Bezdrighin Alexandru alexiunea IP ascuns
Problemă Parola 1 (clasa 7-8) Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 19 mai 2026 22:05:50 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:9:5: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'? 9 | ifstream f("parola1.in"); | ^~~~~~~~ | std::ifstream In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bits/localefwd.h:43, from /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/string:47, from /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/bitset:54, from /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/x86_64-pc-linux-gnu/bits/stdc++.h:54, from main.cpp:1: /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/iosfwd:166:41: note: 'std::ifstream' declared here 166 | typedef basic_ifstream<char> ifstream; | ^~~~~~~~ main.cpp:10:5: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'? 10 | ofstream g("parola1.out"); | ^~~~~~~~ | std::ofstream /usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15/iosfwd:169:41: note: 'std::ofstream' declared here 169 | typedef basic_ofstream<char> ofstream; | ^~~~~~~~ main.cpp:12:9: error: 'f' was not declared in this scope 12 | if (f >> d >> e) { | ^ main.cpp:30:9: error: 'g' was not declared in this scope 30 | g << o << "\n"; | ^ main.cpp:32:5: error: 'f' was not declared in this scope 32 | f.close(); | ^ main.cpp:33:5: error: 'g' was not declared in this scope 33 | g.close(); | ^