Main.cc:3:15: error: ‘n’ has not been declared
int akm(int m,n)
^
Main.cc: In function ‘int akm(int, int)’:
Main.cc:10:12: error: ‘n’ was not declared in this scope
k=n+1;
^
Main.cc:15:16: error: ‘n’ was not declared in this scope
if(n==0)
^