Borderou de evaluare (job #3321713)

Utilizator petrumakPetru Makarov petrumak Data 11 noiembrie 2025 09:30:47
Problema ClassicTask Status done
Runda Arhiva Monthly Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:14:5: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'? 14 | ifstream in("classictask.in", "r"); | ^~~~~~~~ | std::ifstream In file included from /usr/include/c++/12.2.1/ios:38, from /usr/include/c++/12.2.1/ostream:38, from /usr/include/c++/12.2.1/iostream:39, from main.cpp:1: /usr/include/c++/12.2.1/iosfwd:162:41: note: 'std::ifstream' declared here 162 | typedef basic_ifstream<char> ifstream; | ^~~~~~~~ main.cpp:15:5: error: 'myfile' was not declared in this scope; did you mean 'tmpfile'? 15 | myfile >> a >> b >> c; | ^~~~~~ | tmpfile main.cpp:16:5: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'? 16 | ofstream outfile("classictask.out"); | ^~~~~~~~ | std::ofstream /usr/include/c++/12.2.1/iosfwd:165:41: note: 'std::ofstream' declared here 165 | typedef basic_ofstream<char> ofstream; | ^~~~~~~~ main.cpp:18:5: error: 'outfile' was not declared in this scope 18 | outfile << tmp - (c * int(tmp/c)); | ^~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?