Borderou de evaluare (job #541352)

Utilizator avatar tone_alexandru Tone Alexandru tone_alexandru IP ascuns
Problemă Piramida1 (clasa a 6-a) Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 10 mar. 2020 16:03:01 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:2:1: error: 'ifstream' does not name a type 2 | ifstream cin("piramida1.in"); | ^~~~~~~~ main.cpp:3:1: error: 'ofstream' does not name a type 3 | ofstream cout("piramida1.out"); | ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:10:11: error: 'cin' was not declared in this scope 10 | while(cin>>ch) | ^~~ main.cpp:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 1 | #include <fstream> +++ |+#include <iostream> 2 | ifstream cin("piramida1.in"); main.cpp:13:13: error: 'cout' was not declared in this scope 13 | cout<<ch; | ^~~~ main.cpp:13:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' main.cpp:17:13: error: 'cout' was not declared in this scope 17 | cout<<ch; | ^~~~ main.cpp:17:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'