Borderou de evaluare (job #736020)

Utilizator avatar makedonu Gheorghe Mario makedonu IP ascuns
Problemă Centru Prim (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 5 oct. 2023 17:51:22 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:3:1: error: 'ifstream' does not name a type 3 | ifstream fin("centruprim.in") | ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:10:5: error: 'fin' was not declared in this scope 10 | fin>>n; | ^~~ main.cpp:41:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'? 41 | cout<<prim; | ^~~~ | std::cout In file included from main.cpp:1: /usr/lib/gcc/i686-pc-linux-gnu/12/include/g++-v12/iostream:61:18: note: 'std::cout' declared here 61 | extern ostream cout; /// Linked to standard output | ^~~~