0_0_36571483_9981.cpp: In function 'int main()':
0_0_36571483_9981.cpp:37:31: error: invalid user-defined conversion from 'unsigned int' to 'std::vector<std::basic_string<char> >::value_type&& {aka std::basic_string<char>&&}' [-fpermissive]
ans.push_back('1' + (B & 1));
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_36571483_9981.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:495:7: note: candidate is: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>] <near match>
basic_string(const _CharT* __s, const _Alloc& __a = _Alloc());
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:495:7: note: no known conversion for argument 1 from 'unsigned int' to 'const char*'
0_0_36571483_9981.cpp:37:31: error: invalid conversion from 'unsigned int' to 'const char*' [-fpermissive]
ans.push_back('1' + (B & 1));
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_36571483_9981.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:495:7: note: initializing argument 1 of 'std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
basic_string(const _CharT* __s, const _Alloc& __a = _Alloc());
^
0_0_36571483_9981.cpp:37:31: error: conversion to non-const reference type 'std::vector<std::basic_string<char> >::value_type&& {aka class std::basic_string<char>&&}' from rvalue of type 'std::basic_string<char>' [-fpermissive]
ans.push_back('1' + (B & 1));
^
|