prog.cpp: In function ‘int main()’:
prog.cpp:5:36: error: a function-definition is not allowed here before ‘{’ token
int commonDenominator(int x,int y){
^
prog.cpp:12:31: error: ‘commonDenominator’ was not declared in this scope
commonDenominator(252, 198)
^
prog.cpp:13:2: error: expected ‘;’ before ‘return’
return 0;
^