Borderou de evaluare (job #776187)

Utilizator avatar Radu_Balas Radu Andrei Balas Radu_Balas IP ascuns
Problemă Nrdif (clasele 5-6) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 25 apr. 2024 12:42:56 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:1:10: error: #include expects "FILENAME" or <FILENAME> 1 | #include fstream> | ^~~~~~~ main.cpp: In function 'int main()': main.cpp:5:5: error: 'ifstream' was not declared in this scope 5 | ifstream fin ("nrdif.in"); | ^~~~~~~~ main.cpp:1:1: note: 'std::ifstream' is defined in header '<fstream>'; did you forget to '#include <fstream>'? +++ |+#include <fstream> 1 | #include fstream> main.cpp:6:5: error: 'ofstream' was not declared in this scope 6 | ofstream fout ("nrdif.out"); | ^~~~~~~~ main.cpp:6:5: note: 'std::ofstream' is defined in header '<fstream>'; did you forget to '#include <fstream>'? main.cpp:8:5: error: 'fin' was not declared in this scope 8 | fin >> n; | ^~~ main.cpp:27:5: error: 'fout' was not declared in this scope 27 | fout << difmax; | ^~~~