这是一个非常简单的问题。
说我有一个功能:
 int fun(int n){
     if (n > 3)
         return n;
     else
         fail(); // this function outputs error message 
                 // and terminates the program
                 // no return value
 }
然后对于 n <=3 的情况没有返回值。如何解决这个问题?