Borderou de evaluare (job #447507)

Utilizator avatar biancaivascu Bianca Ivascu biancaivascu IP ascuns
Problemă Piramida1 (clasa a 6-a) Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 17 mar. 2019 18:08:14 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:12:11: error: 'cin' was not declared in this scope 12 | while(cin>>a) | ^~~ 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 | main.cpp:18:9: error: 'cout' was not declared in this scope 18 | cout<<a; | ^~~~ main.cpp:18:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' main.cpp:24:5: error: 'cout' was not declared in this scope 24 | cout<<endl; | ^~~~ main.cpp:24:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' main.cpp:10:12: warning: unused variable 'b' [-Wunused-variable] 10 | char a,b; | ^