Borderou de evaluare (job #810871)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Minge (clasa a 6-a) | Compilator | cpp-32 |
Rundă | lasm_22_02_2025_clasa10_11 | Status | evaluat |
Dată | 22 feb. 2025 15:20:51 | 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("mingea.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("mingea.out");
| ^
main.cpp:6:18: note: 'std::ofstream' is defined in header '<fstream>'; this is probably fixable by adding '#include <fstream>'