Borderou de evaluare (job #606531)

Utilizator avatar TucaAlexandru Tuca Alexandru Ioan TucaAlexandru IP ascuns
Problemă Cifra Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 18 sept. 2021 19:19:41 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:2:1: error: 'ifstream' does not name a type 2 | ifstream fin ("cifra.in"); | ^~~~~~~~ main.cpp:3:1: error: 'ofstream' does not name a type 3 | ofstream fout ("cifra.out"); | ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:21:5: error: 'cin' was not declared in this scope 21 | cin>>n>>c; | ^~~ main.cpp:2:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'? 1 | #include <fstream> +++ |+#include <iostream> 2 | ifstream fin ("cifra.in"); main.cpp:25:11: error: 'fout' was not declared in this scope 25 | fout<<k<< " "; | ^~~~