Borderou de evaluare (job #800094)

Utilizator avatar AnSeDra Andrei Sebastian Dragulescu AnSeDra IP ascuns
Problemă Cristela (clasele 9-12) Compilator cpp-32 | vezi sursa
Rundă Arhiva de probleme Status evaluat
Dată 16 dec. 2024 17:52:53 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void citire()': main.cpp:20:5: error: 'cin' was not declared in this scope 20 | cin >> n; | ^~~ main.cpp:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' 1 | #include <fstream> +++ |+#include <iostream> 2 | #include <string> main.cpp: In function 'void afisare_solutie()': main.cpp:58:5: error: 'cout' was not declared in this scope 58 | cout << sol; | ^~~~ main.cpp:58:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'