Accident to use STL's <deque> on arduino 101.

Hello,
Deque is a c++ library, you can't use it in Arduino. Your code also uses some other c++ features (such as the auto keyword). Make sure you are writing code for arduino, not c++.