Borderou de evaluare (job #3280058)

Utilizator ciusMocan Caius cius Data 25 februarie 2025 12:00:30
Problema Factorial Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:4:1: error: expected ',' or ';' before 'ofstream' 4 | ofstream cout("fact.out") | ^~~~~~~~ main.cpp: In function 'int main()': main.cpp:18:10: error: 'p' was not declared in this scope 18 | cin>>p; | ^ main.cpp:19:5: error: 'm' was not declared in this scope; did you mean 'tm'? 19 | m=(l+r)/2; | ^ | tm main.cpp:19:8: error: 'l' was not declared in this scope 19 | m=(l+r)/2; | ^ main.cpp:19:10: error: 'r' was not declared in this scope 19 | m=(l+r)/2; | ^ main.cpp:20:5: error: 'x' was not declared in this scope 20 | x=Zerouri(m); | ^ main.cpp:33:9: error: 'cout' was not declared in this scope 33 | cout<<-1; | ^~~~ main.cpp:2:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? 1 | #include <fstream> +++ |+#include <iostream> 2 | using namespace std; main.cpp:35:9: error: 'cout' was not declared in this scope 35 | cout<<1; | ^~~~ main.cpp:35:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? main.cpp:37:9: error: 'cout' was not declared in this scope 37 | cout<<5*m; | ^~~~ main.cpp:37:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? Non zero exit status: 1

Ceva nu functioneaza?