/in/foo.cc: In function 'void get(std::__cxx11::string, int*)':
/in/foo.cc:6:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1;i<=n.size());i++
~^~~~~~~~~~
/in/foo.cc:6:25: error: expected ';' before ')' token
for(int i=1;i<=n.size());i++
^
/in/foo.cc:6:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=1;i<=n.size());i++
^~~
/in/foo.cc:6:27: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for(int i=1;i<=n.size());i++
^
/in/foo.cc:6:27: error: 'i' was not declared in this scope
/in/foo.cc: In function 'int main()':
/in/foo.cc:13:2: error: 'syn_with_stdio' is not a member of 'std::ios {aka std::basic_ios<char>}'
ios::syn_with_stdio(false);
^~~
/in/foo.cc:17:10: error: no matching function for call to 'get(std::__cxx11::string&, int&)'
get(m,lb);
^
/in/foo.cc:4:6: note: candidate: void get(std::__cxx11::string, int*) <near match>
void get(string n,int nn[])
^~~
/in/foo.cc:4:6: note: conversion of argument 2 would be ill-formed:
/in/foo.cc:17:10: error: invalid conversion from 'int' to 'int*' [-fpermissive]
get(m,lb);
^
In file included from /usr/include/c++/6/functional:55:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:71,
from /in/foo.cc:1:
/usr/include/c++/6/tuple:1270:5: note: candidate: template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Elements ...> >&& std::get(std::tuple<_Elements ...>&&)
get(tuple<_Elements...>&& __t) noexcept
^~~
/usr/include/c++/6/tuple:1270:5: note: template argument deduction/substitution failed:
/in/foo.cc:17:10: note: 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' is not derived from 'std::tuple<_Elements ...>'
get(m,lb);
^
In file included from /usr/include/c++/6/functional:55:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:71,
from /in/foo.cc:1:
/usr/include/c++/6/tuple:1264:5: note: candidate: template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Elements ...> >& std::get(const std::tuple<_Elements ...>&)
get(const tuple<_Elements...>& __t) noexcept
^~~
/usr/include/c++/6/tuple:1264:5: note: template argument deduction/substitution failed:
/in/foo.cc:17:10: note: 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' is not derived from 'const std::tuple<_Elements ...>'
get(m,lb);
^
In file included from /usr/include/c++/6/functional:55:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:71,
from /in/foo.cc:1:
/usr/include/c++/6/tuple:1258:5: note: candidate: template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Elements ...> >& std::get(std::tuple<_Elements ...>&)
get(tuple<_Elements...>& __t) noexcept
^~~
/usr/include/c++/6/tuple:1258:5: note: template argument deduction/substitution failed:
/in/foo.cc:17:10: note: 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' is not derived from 'std::tuple<_Elements ...>'
get(m,lb);
^
In file included from /usr/include/c++/6/tuple:39:0,
from /usr/include/c++/6/functional:55,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:71,
from /in/foo.cc:1:
/usr/include/c++/6/array:298:5: note: candidate: template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr const _Tp& std::get(const std::array<_Tp, _Nm>&)
get(const array<_Tp, _Nm>& __arr) noexcept
^~~
/usr/include/c++/6/array:298:5: note: template argument deduction/substitution failed:
/in/foo.cc:17:10: note: 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' is not derived from 'const std::array<_Tp, _Nm>'
get(m,lb);
^
In file included from /usr/include/c++/6/tuple:39:0,
from /usr/include/c++/6/functional:55,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:71,
from /in/foo.cc:1:
/usr/include/c++/6/array:290:5: note: candidate: template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr _Tp&& std::get(std::array<_Tp, _Nm>&&)
get(array<_Tp, _Nm>&& __arr) noexcept
^~~
/usr/include/c++/6/array:290:5: note: template argument deduction/substitution failed:
/in/foo.cc:17:10: note: 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' is not derived from 'std::array<_Tp, _Nm>'
get(m,lb);
^
In file included from /usr/include/c++/6/tuple:39:0,
from /usr/include/c++/6/functional:55,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:71,
from /in/foo.cc:1:
/usr/include/c++/6/array:281:5: note: candidate: template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr _Tp& std::get(std::array<_Tp, _Nm>&)
get(array<_Tp, _Nm>& __arr) noexcept
^~~
/usr/include/c++/6/array:281:5: note: template argument deduction/substitution failed:
/in/foo.cc:17:10: note: 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' is not derived from 'std::array<_Tp, _Nm>'
get(m,lb);
^
In file included from /usr/include/c++/6/algorithm:60:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:65,
from /in/foo.cc:1:
/usr/include/c++/6/utility:212:5: note: candidate: template<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
^~~
/usr/include/c++/6/utility:212:5: note: template argument deduction/substitution failed:
/in/foo.cc:17:10: note: 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' is not derived from 'const std::pair<_Tp1, _Tp2>'
get(m,lb);
^
In file included from /usr/include/c++/6/algorithm:60:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:65,
from /in/foo.cc:1:
/usr/include/c++/6/utility:207:5: note: candidate: template<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
^~~
/usr/include/c++/6/utility:207:5: note: template argument deduction/substitution failed:
/in/foo.cc:17:10: note: 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' is not derived from 'std::pair<_Tp1, _Tp2>'
get(m,lb);
^
In file included from /usr/include/c++/6/algorithm:60:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:65,
from /in/foo.cc:1:
/usr/include/c++/6/utility:202:5: note: candidate: template<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
^~~
/usr/include/c++/6/utility:202:5: note: template argument deduction/substitution failed:
/in/foo.cc:17:10: note: 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' is not derived from 'std::pair<_Tp1, _Tp2>'
get(m,lb);
^
/in/foo.cc:19:6: error: 'inti' was not declared in this scope
for(inti=1;i<=lc;i++)
^~~~
/in/foo.cc:19:13: error: 'i' was not declared in this scope
for(inti=1;i<=lc;i++)
^