Problem uniquenumbers
User nothing
Submission Time 2023-06-30 20:35:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:16:33: error: no matching function for call to ‘getline(std::string&, std::string&, char)’
16 | while(getline(numbers, num, ' '))
| ^
In file included from /usr/include/stdio.h:864,
from /usr/include/c++/9/cstdio:42,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:46,
from uniquenumbers.cpp:1:
/usr/include/x86_64-linux-gnu/bits/stdio.h:118:1: note: candidate: ‘__ssize_t getline(char**, size_t*, FILE*)’
118 | getline (char **__lineptr, size_t *__n, FILE *__stream)
| ^~~~~~~
/usr/include/x86_64-linux-gnu/bits/stdio.h:118:17: note: no known conversion for argument 1 from ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘char**’
118 | getline (char **__lineptr, size_t *__n, FILE *__stream)
| ~~~~~~~^~~~~~~~~
In file included from /usr/include/c++/