Problem prefixsums
User tacticalnerd
Submission Time 2024-04-06 09:44:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

prefixsums.cpp: In function ‘int main()’:
prefixsums.cpp:11:22: error: ‘istream_iterator’ was not declared in this scope
11 | vector<string> a(istream_iterator<string>{iss}, istream_iterator<string>());
| ^~~~~~~~~~~~~~~~
prefixsums.cpp:4:1: note: ‘std::istream_iterator’ is defined in header ‘<iterator>’; did you forget to ‘#include <iterator>’?
3 | #include <sstream>
+++ |+#include <iterator>
4 |
prefixsums.cpp:11:45: error: expected primary-expression before ‘>’ token
11 | vector<string> a(istream_iterator<string>{iss}, istream_iterator<string>());
| ^
prefixsums.cpp:11:46: error: expected primary-expression before ‘{’ token
11 | vector<string> a(istream_iterator<string>{iss}, istream_iterator<string>());
| ^