Borderou de evaluare (job #541720)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Piramida1 (clasa a 6-a) | Compilator | cpp |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 12 mar. 2020 10:02:31 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:7:17: error: variable 'std::ifstream cin' has initializer but incomplete type
7 | ifstream cin("piramida1.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 | ///#include <fstream>
main.cpp:8:18: error: variable 'std::ofstream cout' has initializer but incomplete type
8 | ofstream cout("piramida1.out");
| ^
main.cpp:8:18: note: 'std::ofstream' is defined in header '<fstream>'; this is probably fixable by adding '#include <fstream>'