| Problem | blanko |
|---|---|
| User | zhangdi |
| Submission Time | 2025-11-27 20:59:08 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
blanko.cpp: In function ‘int32_t main()’:
blanko.cpp:9:13: error: cannot convert ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘const char*’
9 | exit(atol(s));
| ^
| |
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:528,
from /usr/include/c++/9/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:33,
from blanko.cpp:1:
/usr/include/stdlib.h:366:1: note: initializing argument 1 of ‘long int atol(const char*)’
366 | __NTH (atol (const char *__nptr))
| ^~~~~