Problem | ccs |
---|---|
User | gordonlu |
Submission Time | 2023-11-23 19:14:50 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ccs.cpp: In function ‘std::vector<std::__cxx11::basic_string<char> > split(const string&)’:
ccs.cpp:8:26: error: variable ‘std::istringstream iss’ has initializer but incomplete type
8 | istringstream iss(str);
| ^
ccs.cpp:9:28: error: ‘istream_iterator’ was not declared in this scope
9 | return vector<string> (istream_iterator<string>(iss), istream_iterator<string>());
| ^~~~~~~~~~~~~~~~
ccs.cpp:4:1: note: ‘std::istream_iterator’ is defined in header ‘<iterator>’; did you forget to ‘#include <iterator>’?
3 | #include <unordered_set>
+++ |+#include <iterator>
4 |
ccs.cpp:9:27: error: expected primary-expression before ‘(’ token
9 | return vector<string> (istream_iterator<string>(iss), istream_iterator<string>());
| ^
ccs.cpp:9:51: error: expecte