Main.cc: In function ‘int aa(int)’: Main.cc:25:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ Main.cc: In function ‘int main()’: Main.cc:30:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] for(b1=1;b<=a;b1++) ^