So my question is what to do now to solve this problem
First of all: what linux version are you using?
The error "error: ‘deque’ in namespace ‘std’ does not name a template type" is obviously take a clear that you have very old c++ version. Because the template "deque" is in c++ standard as a minimum from 1998.
May be the error occur because <deque> is not included in httpserver.cpp or httpserver.h but it is strange if you have done all as in the instruction mentioned above