C++ error expected unqualified : <p>Okay so im trying to do some old quiz from my university and i have a question and this is the answer like this , when i try it on Dev-C++ its say wrong , but the teacher say its correct </p>

<pre><code>#include &lt;iostream&gt;
using namespace std;
void add (int,int);
int substract(int,int);
int multiply(int,int);
void divide(int,int);
int main()
{
    int a,b;
    cout&lt;&lt;"Please Enter The Value of a: ";
    cin&gt;&gt;a;
    cout&lt;&lt;"Please Enter The Value of b: ";
    cin&gt;&gt;b;
    add(a,b);
    cout&lt;&lt;"The substract a-b is: "&lt;&lt;substract(a,b)&lt;&lt;endl;
    cout&lt;&lt;"The multiply a*b is : "&lt;&lt;multiply(a,b)&lt;&lt;endl;
    divide(a,b);
    return 0;
}

void add (int a,int b);
{
    cout&lt;&lt;"There sum is: "&lt;&lt;a+b&lt;&lt;endl;
 }
int substract(int a,int b);
{
    return (a-b);
}
int multiply (int a,int b);
{
    return (a*b);
}
void divide (int a,int b);
{
    cout&lt;&lt;"There divide is: "&lt;&lt;a/b&lt;&lt;endl;
}
</code></pre>
