Make sure all return paths return and integer value. for example following code doesn't return int in all paths.
int main(){
int n=0;
if(n){
return 0;
}
}
But this one does.
int main(){
int n=1;
if(n==2){
return 1;
}else{
return 0;
}
}
hope you got the idea.
--
Shiplu Mokadd.im
Follow me, http://twitter.com/shiplu
Innovation distinguishes between follower and leader
--
Ubuntu Bangladesh
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd
