code won't print the calculations from my input values, it keeps asking my to input the values i want it to print

//monthly payment on a loan formula steps
//1 + rate all to the power of n
//above times rate
//all over line 2 minus 1
//all above times L

//Rate is the monthly interest rate--expressed as a decimal value,
//which is the annual interest rate divided by 12.
//n is number of payments
//L is amount of loan

#include <iostream>
#include <iomanip>
#include <cmath> //to use math commands and for pow()
using namespace std;

int main()
{
double interest_rate;
double loan;
int amount_of_payments;

//make user input loan amount;
cout << "Enter loan amount: $";
cin >> loan;

//make user input annual interest rate;
cout << "Enter annual interest rate: ";
cin >> interest_rate;
interest_rate = interest_rate / 100;

//make user input amount of payments;
cout << "Enter the amount of payments: ";
cin >> amount_of_payments; endl;

double monthly_payment;
double amount_paid;
double interest_paid;

monthly_payment = ((interest_rate*(pow(interest_rate+1,
amount_of_payments))/((pow(interest_rate+1, amount_of_payments))-1))*loan;

amount_paid = monthly_payment * amount_of_payments;

interest_paid = amount_paid - loan; endl;


//setprecision(2), fixed, and setw() used for formatting purposes
//to display exactly 2 digits after the decimal point
cout << "Loan amount: $" << setprecision(2) << fixed << setw(10) << loan << endl;
cout << "Monthly Interest Rate: " << setprecision(0) << setw(9) << interest_rate * 100 << "%" << endl;
cout << "Number of Payments: " << setw(10) << amount_of_payments << endl;
cout << "Monthly Payment: $" << setprecision(2) << fixed << setw(10) << monthly_payment << endl;
cout << "Amount Paid Back: $" << setprecision(2) << fixed << setw(10) << amount_paid << endl;
cout << "Interest Paid: $" << setprecision(2) << fixed << setw(10) << interest_paid << endl;

}
How can the program print results if it doesn't run?
Once you fix you syntax errors you will get the following output. http://cpp.sh/8ayfg

 In function 'int main()':
34:32: error: statement cannot resolve address of overloaded function
41:74: error: expected ')' before ';' token
45:41: error: statement cannot resolve address of overloaded function

Hint: endl is used only with << operator


Enter loan amount: $1000
Enter annual interest rate: 10
Enter the amount of payments: 10
Loan amount: $   1000.00
Monthly Interest Rate:        10%
Number of Payments:         10
Monthly Payment: $    162.75
Amount Paid Back: $   1627.45
Interest Paid: $    627.45
Topic archived. No new replies allowed.