error: ‘ostream_iterator’ was not declared in this scope

在代码中添加      #include <iterator>

原文地址:https://www.cnblogs.com/wzqstudy/p/10202381.html