Main.cc: In function 'int a(int, int)': Main.cc:11:19: error: too few arguments to function 'int a(int, int)' return y%a(x%y); ^ Main.cc:6:5: note: declared here int a(int x,int y){ ^