It says > error: macro "min" passed 3 arguments, but takes just 2 so somewhere there is a preprocessor macro called "min", which is defined before including sstream.