Borderou de evaluare (job #815189)

Utilizator avatar RipaD Dorel Ripa RipaD IP ascuns
Problemă Fib (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 19 mar. 2025 11:01:25 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:3:1: error: 'ifstream' does not name a type 3 | ifstream cin("fib.in"); | ^~~~~~~~ main.cpp:4:1: error: 'ofstream' does not name a type 4 | ofstream cout("fib.out"); | ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:36:5: error: 'cin' was not declared in this scope 36 | cin >> n; | ^~~ main.cpp:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 2 | #include <vector> +++ |+#include <iostream> 3 | ifstream cin("fib.in"); main.cpp:38:5: error: 'cout' was not declared in this scope 38 | cout << fib_sequence[n] << endl; | ^~~~ main.cpp:38:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'