Borderou de evaluare (job #3321711)

Utilizator petrumakPetru Makarov petrumak Data 11 noiembrie 2025 09:27:12
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:13:5: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'? 13 | ifstream myfile("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:14:5: error: 'myfile' was not declared in this scope; did you mean 'tmpfile'? 14 | myfile << a << b << c; | ^~~~~~ | tmpfile main.cpp:15:5: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'? 15 | 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:16:5: error: 'outfile' was not declared in this scope 16 | outfile << powMy(a,b) % c; | ^~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?