compile for c++11
solve