Main.cc:10:15: error: expected ')' before ';' token
int gcd2(int n;int m){
^
Main.cc:10:21: error: expected initializer before ')' token
int gcd2(int n;int m){
^
Main.cc: In function 'int gcd(int, int)':
Main.cc:9:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^