Main.cc: In function 'int a(int)':
Main.cc:12:18: error: 'j' was not declared in this scope
if(i%j==0)
^
Main.cc:18:9: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
Main.cc: At global scope:
Main.cc:19:5: error: expected declaration before '}' token
}
^