Borderou de evaluare (job #3313700)

Utilizator PopRadGabPopescu Radu Gabriel PopRadGab Data 5 octombrie 2025 21:59:33
Problema A+B Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:5:4: error: 'ifstream' was not declared in this scope; did you mean 'std::ifstream'? 5 | ifstream fin("adunare.in"); | ^~~~~~~~ | std::ifstream In file included from /usr/include/c++/12.2.1/ios:38, from /usr/include/c++/12.2.1/istream:38, from /usr/include/c++/12.2.1/fstream:38, 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:6:4: error: 'ofstream' was not declared in this scope; did you mean 'std::ofstream'? 6 | ofstream fout("adunare.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:8:4: error: 'fin' was not declared in this scope 8 | fin>>a>>b; | ^~~ main.cpp:9:4: error: 'fout' was not declared in this scope 9 | fout<<a+b; | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?