السلام عليكم ورحمة الله وبركاتة
هذا كود تطبيق للتأكد من صحة المدخلات وبة مشكلة لا أعرف ما هى ولكن كل ما أعملة كومبايل
يظهر لى خطأ فى أول سطر المخصص بتضمين المكتبة iostream ولا أدرى ما المشكلة
إليكم الكود
#include<iostream>
using namespace std;
int main()
{
int a;
cout<<"Enter the number";
cin>>a;
if(cin.fail()==true)
cout<<"Error please input number\n";
else
cout<<"a^2= "<<a*a;
system("pause");
return 0;
}