Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void split_l(string* a)
- {
- string* b=new string[16];
- string temp = (*a)[1];
- }
- int main()
- {
- string a="00000000000000000000000000000000";
- split_l(&a);
- return 0;
- }
- /////////////////////////////////////////
- conversion from ‘__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type’ {aka ‘char’} to non-scalar type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} requested
- 66 | string temp = (*a)[1];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement