Borderou de evaluare (job #621245)

Utilizator avatar saranegrila Negrila Sara saranegrila IP ascuns
Problemă Cifre 3 (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 17 dec. 2021 15:43:22 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:8:17: error: expected initializer before string constant 8 | ifstream cin"cifre3.in"; | ^~~~~~~~~~~ main.cpp:9:18: error: expected initializer before string constant 9 | ofstream cout"cifre3.out"; | ^~~~~~~~~~~~ main.cpp:11:5: error: 'cin' was not declared in this scope 11 | cin >> a >> b; | ^~~ main.cpp:2:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'? 1 | #include <fstream> +++ |+#include <iostream> 2 | main.cpp:24:30: error: 'cout' was not declared in this scope 24 | if(f1[i]>0 && f2[i]==0) cout << i << " "; | ^~~~ main.cpp:24:30: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? main.cpp:27:16: error: 'cout' was not declared in this scope 27 | if(ok1==0) cout << "-1"; | ^~~~ main.cpp:27:16: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? main.cpp:33:16: error: 'cout' was not declared in this scope 33 | if(ok2==0) cout << "-1"; | ^~~~ main.cpp:33:16: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? main.cpp:34:5: error: 'cout' was not declared in this scope 34 | cout << endl << n; | ^~~~ main.cpp:34:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?