Getting multiple errors about the headerfile and istream and ostream

i think my logic is wrong as im getting these many errors,heres tha code

cin>>n1>>endl;
this is wrong statement

correct one is cin>>n1;

when you use cout then this should be correct
cout<<N1<<endl;

Modified Code

the code you sent is not of this question , pls check

okay sorry
Modified Code

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.