Borderou de evaluare (job #834513)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Cifre 3 (clasa a 5-a) | Compilator | cpp |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 28 sept. 2025 12:50:36 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:3:12: error: variable 'std::ifstream in' has initializer but incomplete type
3 | ifstream in("cifre3.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:4:13: error: variable 'std::ofstream out' has initializer but incomplete type
4 | ofstream out("cifre3.out");
| ^
main.cpp:4:13: note: 'std::ofstream' is defined in header '<fstream>'; this is probably fixable by adding '#include <fstream>'