Borderou de evaluare (job #651041)

Utilizator avatar arinac Arina Coroliuc arinac IP ascuns
Problemă Foto1 (clasa a 7-a) Compilator cpp-32
Rundă lasm_25_05_2022_cl10_11 Status evaluat
Dată 25 mai 2022 13:59:41 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:22:35: error: 'stdcout' was not declared in this scope; did you mean 'stdout'? 22 | freopen("foto1.out", "w", stdcout); | ^~~~~~~ | stdout main.cpp:24:5: error: 'in' was not declared in this scope; did you mean 'n'? 24 | in>>c>>n>>m; | ^~ | n main.cpp:57:9: error: 'cout' was not declared in this scope 57 | cout<<nr<<" "<<::maxim; | ^~~~ 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:59:9: error: 'cout' was not declared in this scope 59 | cout<<maxim; | ^~~~ main.cpp:59:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? main.cpp:21:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 21 | freopen("foto1.in", "r", stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~