Problem | timeexam |
---|---|
User | SharpnessChipped |
Submission Time | 2023-06-05 23:47:47 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
timeexam.cpp: In function ‘int main()’:
timeexam.cpp:11:16: error: cannot convert ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘const char*’
11 | while (strlen(result) < 4) {
| ^~~~~~
| |
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/9/cstring:42,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:48,
from timeexam.cpp:1:
/usr/include/string.h:385:35: note: initializing argument 1 of ‘size_t strlen(const char*)’
385 | extern size_t strlen (const char *__s)
| ~~~~~~~~~~~~^~~