Borderou de evaluare (job #800528)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Economii | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 21 dec. 2024 22:14:01 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:5:17: error: variable 'std::ifstream fin' has initializer but incomplete type
5 | ifstream fin("economii.in");
| ^
main.cpp:2:1: note: 'std::ifstream' is defined in header '<fstream>'; this is probably fixable by adding '#include <fstream>'
1 | #include <iostream>
+++ |+#include <fstream>
2 | using namespace std;
main.cpp:6:18: error: variable 'std::ofstream fout' has initializer but incomplete type
6 | ofstream fout("economii.out");
| ^
main.cpp:6:18: note: 'std::ofstream' is defined in header '<fstream>'; this is probably fixable by adding '#include <fstream>'