Borderou de evaluare (job #3204021)

Utilizator Bogdan345Marius Mihalache Bogdan345 Data 15 februarie 2024 14:31:42
Problema Factorial Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:2:1: error: 'ifstream' does not name a type 2 | ifstream cin("fact.in"); | ^~~~~~~~ main.cpp:3:1: error: 'ofstream' does not name a type 3 | ofstream cout("fact.out"); | ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:30:1: error: 'cin' was not declared in this scope 30 | cin>>n; | ^~~ 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 cin("fact.in"); main.cpp:32:5: error: 'cout' was not declared in this scope 32 | cout<<1; | ^~~~ main.cpp:32:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? main.cpp:36:1: error: 'cout' was not declared in this scope 36 | cout<<rasp; | ^~~~ main.cpp:36:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? Non zero exit status: 1

Ceva nu functioneaza?