0_0_27453767_9467.cpp: In function 'void insert_(char*)':
0_0_27453767_9467.cpp:21:8: error: 'sum' was not declared in this scope
sum[tree[root][id]]++;
^
0_0_27453767_9467.cpp: In function 'int find_(char*)':
0_0_27453767_9467.cpp:36:12: error: 'sum' was not declared in this scope
return sum[root];
^
0_0_27453767_9467.cpp: In function 'void work()':
0_0_27453767_9467.cpp:41:14: error: no matching function for call to 'get(char&)'
while(get(ss))
^
0_0_27453767_9467.cpp:41:14: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
from 0_0_27453767_9467.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:143:5: note: template<long long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(std::pair<_Tp1, _Tp2>&)
get(std::pair<_Tp1, _Tp2>& __in) noexcept
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:143:5: note: template argument deduction/substitution failed:
0_0_27453767_9467.cpp:41:14: note: mismatched types 'std::pair<_Tp1, _Tp2>' and 'char'
while(get(ss))
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
from 0_0_27453767_9467.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:148:5: note: template<long long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(std::pair<_Tp1, _Tp2>&&)
get(std::pair<_Tp1, _Tp2>&& __in) noexcept
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:148:5: note: template argument deduction/substitution failed:
0_0_27453767_9467.cpp:41:14: note: mismatched types 'std::pair<_Tp1, _Tp2>' and 'char'
while(get(ss))
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
from 0_0_27453767_9467.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:153:5: note: template<long long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(const std::pair<_Tp1, _Tp2>&)
get(const std::pair<_Tp1, _Tp2>& __in) noexcept
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:153:5: note: template argument deduction/substitution failed:
0_0_27453767_9467.cpp:41:14: note: mismatched types 'const std::pair<_Tp1, _Tp2>' and 'char'
while(get(ss))
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:39:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:55,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70,
from 0_0_27453767_9467.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/array:272:5: note: template<long long unsigned int _Int, class _Tp, long long unsigned int _Nm> constexpr _Tp& std::get(std::array<_Tp, _Nm>&)
get(array<_Tp, _Nm>& __arr) noexcept
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/array:272:5: note: template argument deduction/substitution failed:
0_0_27453767_9467.cpp:41:14: note: mismatched types 'std::array<_Tp, _Nm>' and 'char'
while(get(ss))
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:39:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:55,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70,
from 0_0_27453767_9467.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/array:281:5: note: template<long long unsigned int _Int, class _Tp, long long unsigned int _Nm> constexpr _Tp&& std::get(std::array<_Tp, _Nm>&&)
get(array<_Tp, _Nm>&& __arr) noexcept
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/array:281:5: note: template argument deduction/substitution failed:
0_0_27453767_9467.cpp:41:14: note: mismatched types 'std::array<_Tp, _Nm>' and 'char'
while(get(ss))
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:39:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:55,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70,
from 0_0_27453767_9467.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/array:289:5: note: template<long long unsigned int _Int, class _Tp, long long unsigned int _Nm> constexpr const _Tp& std::get(const std::array<_Tp, _Nm>&)
get(const array<_Tp, _Nm>& __arr) noexcept
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/array:289:5: note: template argument deduction/substitution failed:
0_0_27453767_9467.cpp:41:14: note: mismatched types 'const std::array<_Tp, _Nm>' and 'char'
while(get(ss))
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:55:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70,
from 0_0_27453767_9467.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:756:5: note: template<long long unsigned int __i, class ... _Elements> constexpr typename std::__add_ref<typename std::tuple_element<__i, std::tuple<_Elements ...> >::type>::type std::get(std::tuple<_Elements ...>&)
get(tuple<_Elements...>& __t) noexcept
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:756:5: note: template argument deduction/substitution failed:
0_0_27453767_9467.cpp:41:14: note: mismatched types 'std::tuple<_Elements ...>' and 'char'
while(get(ss))
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:55:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70,
from 0_0_27453767_9467.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:764:5: note: template<long long unsigned int __i, class ... _Elements> constexpr typename std::__add_c_ref<typename std::tuple_element<__i, std::tuple<_Elements ...> >::type>::type std::get(const std::tuple<_Elements ...>&)
get(const tuple<_Elements...>& __t) noexcept
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:764:5: note: template argument deduction/substitution failed:
0_0_27453767_9467.cpp:41:14: note: mismatched types 'const std::tuple<_Elements ...>' and 'char'
while(get(ss))
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:55:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70,
from 0_0_27453767_9467.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:772:5: note: template<long long unsigned int __i, class ... _Elements> constexpr typename std::__add_r_ref<typename std::tuple_element<__i, std::tuple<_Elements ...> >::type>::type std::get(std::tuple<_Elements ...>&&)
get(tuple<_Elements...>&& __t) noexcept
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:772:5: note: template argument deduction/substitution failed:
0_0_27453767_9467.cpp:41:14: note: mismatched types 'std::tuple<_Elements ...>' and 'char'
while(get(ss))
^
0_0_27453767_9467.cpp:43:10: error: invalid types 'char[int]' for array subscript
if(ss[0]=='0')
^
0_0_27453767_9467.cpp:46:12: error: invalid conversion from 'char' to 'char*' [-fpermissive]
insert_(ss);
^
0_0_27453767_9467.cpp:13:6: note: initializing argument 1 of 'void insert_(char*)'
void insert_(char *str)
^
0_0_27453767_9467.cpp:49:23: error: invalid conversion from 'char' to 'char*' [-fpermissive]
printf("%d",find_(ss));
^
0_0_27453767_9467.cpp:26:5: note: initializing argument 1 of 'int find_(char*)'
int find_(char *str)
^
0_0_27453767_9467.cpp: In function 'int main()':
0_0_27453767_9467.cpp:56:11: error: 'readdata' was not declared in this scope
readdata();
^
|