Something wrong with my int main(){}
<pre><code>#include &lt;iostream&gt;

using namespace std;

char sell;
int crew;
char you [50];
int ships =1;
int money;
int choice;

class ship{
public:
void sell_shii(){
cout&lt;&lt;"Do you wish to seel your ship?"&lt;&lt;endl;
cout&lt;&lt;"1to sell ship and 2to cancel"&lt;&lt;endl;


cin&gt;&gt;sell;
if (sell==1 &amp;&amp; ships &gt;0){
cout&lt;&lt;"You sold your ship"&lt;&lt;endl;
ships+=sell;



}else{
cout&lt;&lt;"You didnt sell your ship"&lt;&lt;endl;
}
}
}





int main()
{



cout&lt;&lt;"What is your name captain?"&lt;&lt;endl;
cin&gt;&gt;you;
cout&lt;&lt;"Welcome captain "&lt;&lt;you&lt;&lt;endl;

cout&lt;&lt;"You have "&lt;&lt;ships&lt;&lt;"ship/s";

cout&lt;&lt;"What would you like to do?\n 1 buy ships 2 sell ships\n 3 battle\n
cin&lt;&lt;choice;

switch (choice)

case 1:
buyship()
break;
case 2:
sellshii()
break;
case 3;
battle();

return 0;

}
</code></pre>

<p>My "{" where the int main is doesnt seem to work, what have i done?</p>

<p>Erros that appear are </p>

<pre><code>C:\Users\Ethan\Desktop\New folder.IPA\C++\Ship game\main.cpp|37|error: new types may not be defined in a return type|
C:\Users\Ethan\Desktop\New folder.IPA\C++\Ship game\main.cpp|37|error: extraneous `int' ignored|
C:\Users\Ethan\Desktop\New folder.IPA\C++\Ship game\main.cpp|37|error: `main' must return `int'|
C:\Users\Ethan\Desktop\New folder.IPA\C++\Ship game\main.cpp|37|error: return type for `main' change to "int"
</code></pre>
