hi all

today I had a quiz in template and recursion
it was easy I did will , but when I tried to solve the questions in VB it gave me different answers I will not say my answers untill I see urs to compare them with mine.
so help me pleas to find where the errors, is it from me or the compiler?

Code:
#include<iostream>
using namespace std;


int sum(int m,int n){
	if (m==0)
	return n+1;
if (n==0)
return sum (m-1 , 1);
else
 sum (m-1 , sum ( m , n-1));
cout<<"done";
} 

int main(){


cout<<sum(2,5);


	return 0;}