I have been working on this program for about a week and i have been getting these errors that i just cant get by. The program is supposed to first accept user input for the type of symbol. Then its supposed to accept user input for a number. Finally it is supposed to output a square made up of the character chosen by the user and with a length chosen by the users number input. This is what i have but it has been giving me errors.
#include <iostream>
using namespace std;
void buildSquare(int);
int main()
{
int symbol, length, side;
cout << " Please enter symbol to fill square" << endl;
cin >> symbol >> endl;
cout << " Please enter length of sides. "<< endl;
cin >> length >> endl;
buildSquare( length);
return 0;
}
void buildSquare( int length){
for(int side = 0; side < length; side++)
{
cout << symbol;
}
cout << endl;
}
Please any help would be greatly appreciated. Thank you in advance