Wrong Answer
/in/foo.cc: In function 'int search(int)': /in/foo.cc:28:2: warning: no return statement in function returning non-void [-Wreturn-type] }} ^ /in/foo.cc: In function 'int print()': /in/foo.cc:37:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^