Problem 3nplus1II
User kesleryak
Submission Time 2024-04-09 20:45:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1II.cpp: In function ‘int main()’:
3nplus1II.cpp:10:47: error: ‘istream_iterator’ is not a member of ‘std’
10 | std::vector<std::string> hail_input((std::istream_iterator<std::string>(iss)),
| ^~~~~~~~~~~~~~~~
3nplus1II.cpp:4:1: note: ‘std::istream_iterator’ is defined in header ‘<iterator>’; did you forget to ‘#include <iterator>’?
3 | #include <vector>
+++ |+#include <iterator>
4 |
3nplus1II.cpp:10:75: error: expected primary-expression before ‘>’ token
10 | std::vector<std::string> hail_input((std::istream_iterator<std::string>(iss)),
| ^
3nplus1II.cpp:11:47: error: ‘istream_iterator’ is not a member of ‘std’
11 | std::istream_iterator<std::string>());
|