#include <iostream>
using namespace std;
int main(){
int n ,sum(1),k;
cout <<"Please enter an integer n "<< endl;
cin >> n >>endl;
for(k=1;k<=n;k++)
{
sum +=(1/(1*(k+1)));
}
cout << "The sum = " << sum <<endl;
return 0;
}
It does not recognize the input operator >> when it compiles