Borderou de evaluare (job #664544)

Utilizator avatar filip.ripa Ripa Filip filip.ripa IP ascuns
Problemă Aritmetica2 (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 27 sept. 2022 17:36:45 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:12:5: error: 'cin' was not declared in this scope 12 | cin >> n >> a >> m; | ^~~ 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:16:9: error: 'cout' was not declared in this scope 16 | cout << n + m; | ^~~~ main.cpp:16:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? main.cpp:20:9: error: 'cout' was not declared in this scope 20 | cout << n - m; | ^~~~ main.cpp:20:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? main.cpp:24:9: error: 'cout' was not declared in this scope 24 | cout << n * m; | ^~~~ main.cpp:24:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'? main.cpp:28:9: error: 'cout' was not declared in this scope 28 | cout << n / m; | ^~~~ main.cpp:28:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?