fix compile error
use std::getline
fix