Problem numericalstrings
User Lemon
Submission Time 2025-07-02 12:35:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

numericalstrings.cpp: In function ‘int main()’:
numericalstrings.cpp:22:34: error: no matching function for call to ‘stoll(__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type&)’
22 | ll ans = stoll(strings[0]);
| ^
In file included 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/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from numericalstrings.cpp:1:
/usr/include/c++/9/bits/basic_string.h:6521:3: note: candidate: ‘long long int std::_