Problem | 3nplus1II |
---|---|
User | kesleryak |
Submission Time | 2024-04-09 20:44:45 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1II.cpp: In function ‘int main()’:
3nplus1II.cpp:8:37: error: variable ‘std::istringstream iss’ has initializer but incomplete type
8 | std::istringstream iss(input_str);
| ^
3nplus1II.cpp:9:47: error: ‘istream_iterator’ is not a member of ‘std’
9 | std::vector<std::string> hail_input((std::istream_iterator<std::string>(iss)),std::istream_iterator<std::string>());
| ^~~~~~~~~~~~~~~~
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:9:75: error: expected primary-expression before ‘>’ token
9 | std::vector<std::string> hail_input((std::istream_iterator<std::string>(iss)),std::istream_iterator<std::string>());
|