Problem swords
User senkyte
Submission Time 2024-02-22 10:07:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swords.cpp: In function ‘int main()’:
swords.cpp:17:25: error: no matching function for call to ‘getline(std::stringstream&, std::string&, const char [2])’
17 | while(getline(ss,s," ")){
| ^
In file included from /usr/include/stdio.h:864,
from /usr/include/c++/9/cstdio:42,
from /usr/include/c++/9/ext/string_conversions.h:43,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from swords.cpp:1:
/usr/include/x86_64-linux-gnu/bits/stdio.h:118:1: note: candidate: ‘__ssize_t getline(char**, size_t*, FILE*)’
118