Problem | sort |
---|---|
User | RandomPerson |
Submission Time | 2023-03-09 13:30:58 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sort.cpp: In function ‘int main()’:
sort.cpp:9:17: error: invalid cast from type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to type ‘__int128’
9 | a[i]=(__int128)s;
| ^
sort.cpp:13:21: error: no matching function for call to ‘std::__cxx11::basic_string<char>::basic_string(__int128&)’
13 | cout << (string)a[i] << " ";
| ^
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,
f