Auto find sample cpp