I have started coding a simple game but when compiling after a bit of coding but I keep getting the error: Return Statement with no value, in function returning 'int' (-fpermissive)
#include <iostream>
#include <string>
usingnamespace std;
bool running = 1;
int userInput = 0;
int playerInfo[2];
void titleFunc();
int main()
{
void titleFunc(); {
cout << "\t\t\t\t---Xeon---\n\n\n";
cout << "\t\t\t\t 1: Play\n";
cin >> userInput;
if(userInput == 1) {
void newGameFunc(); {
cout << "Welcome to Xeon! An unexlored world full of adventurous paths and dangerous creatures!\n";
cout << "I am Zolo... The DragonBorn!\n";
cout << "Since you are a new comer to Xeon... could you please tell me a little about yourself?\n";
cout << "Are you a boy or a girl?\n 1: Boy\n 2: Girl\n";
cin >> userInput;
playerInfo[0] = userInput;
cout << "And what kind of person are you?\n 1: Warrior\n 2: Archer\n 3: Thief\n 4: Scout\n 5: Mist\n";
cin >> userInput;
playerInfo[1] = userInput;
}
}
else {
running = 0;
}
return;
}
while (running) {
}
return 0;
}