palindrome.cpp: In function 'void caso_teste()':
palindrome.cpp:309:26: error: no matching function for call to 'std::map<int, std::set<int> >::map(const int&)'
309 | map<int, set<int>> vv(MX);
| ^
In file included from /usr/include/c++/10/map:61,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:81,
from palindrome.cpp:21:
/usr/include/c++/10/bits/stl_map.h:290:2: note: candidate: 'template<class _InputIterator> std::map<_Key, _Tp, _Compare, _Alloc>::map(_InputIterator, _InputIterator, const _Compare&, const allocator_type&) [with _InputIterator = _InputIterator; _Key = int; _Tp = std::set<int>; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, std::set<int> > >]'
290 | map(_InputIterator __first, _InputIterator __last,
| ^~~
/usr/include/c++/10/bits/stl_map.h:290:2: note: template argument deduction/substitution failed:
palindrome.cpp:309:26: note: candidate expects 4 arguments, 1 provided
309 | map<int, set<int>> vv(MX);
| ^
In file included from /usr/include/c++/10/map:61,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:81,
from palindrome.cpp:21:
/usr/include/c++/10/bits/stl_map.h:273:2: note: candidate: 'template<class _InputIterator> std::map<_Key, _Tp, _Compare, _Alloc>::map(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; _Key = int; _Tp = std::set<int>; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, std::set<int> > >]'
273 | map(_InputIterator __first, _InputIterator __last)
| ^~~
/usr/include/c++/10/bits/stl_map.h:273:2: note: template argument deduction/substitution failed:
palindrome.cpp:309:26: note: candidate expects 2 arguments, 1 provided
309 | map<int, set<int>> vv(MX);
| ^
In file included from /usr/include/c++/10/map:61,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:81,
from palindrome.cpp:21:
/usr/include/c++/10/bits/stl_map.h:256:2: note: candidate: 'template<class _InputIterator> std::map<_Key, _Tp, _Compare, _Alloc>::map(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = _InputIterator; _Key = int; _Tp = std::set<int>; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, std::set<int> > >]'
256 | map(_InputIterator __first, _InputIterator __last,
| ^~~
/usr/include/c++/10/bits/stl_map.h:256:2: note: template argument deduction/substitution failed:
palindrome.cpp:309:26: note: candidate expects 3 arguments, 1 provided
309 | map<int, set<int>> vv(MX);
| ^
In file included from /usr/include/c++/10/map:61,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:81,
from palindrome.cpp:21:
/usr/include/c++/10/bits/stl_map.h:250:7: note: candidate: 'std::map<_Key, _Tp, _Compare, _Alloc>::map(std::initializer_list<std::pair<const _Key, _Tp> >, const allocator_type&) [with _Key = int; _Tp = std::set<int>; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, std::set<int> > >; std::map<_Key, _Tp, _Compare, _Alloc>::allocator_type = std::allocator<std::pair<const int, std::set<int> > >]'
250 | map(initializer_list<value_type> __l, const allocator_type& __a)
| ^~~
/usr/include/c++/10/bits/stl_map.h:250:7: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/10/bits/stl_map.h:244:7: note: candidate: 'std::map<_Key, _Tp, _Compare, _Alloc>::map(std::map<_Key, _Tp, _Compare, _Alloc>&&, const allocator_type&) [with _Key = int; _Tp = std::set<int>; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, std::set<int> > >; std::map<_Key, _Tp, _Compare, _Alloc>::allocator_type = std::allocator<std::pair<const int, std::set<int> > >]'
244 | map(map&& __m, const allocator_type& __a)
| ^~~
/usr/include/c++/10/bits/stl_map.h:244:7: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/10/bits/stl_map.h:240:7: note: candidate: 'std::map<_Key, _Tp, _Compare, _Alloc>::map(const std::map<_Key, _Tp, _Compare, _Alloc>&, const allocator_type&) [with _Key = int; _Tp = std::set<int>; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, std::set<int> > >; std::map<_Key, _Tp, _Compare, _Alloc>::allocator_type = std::allocator<std::pair<const int, std::set<int> > >]'
240 | map(const map& __m, const allocator_type& __a)
| ^~~
/usr/include/c++/10/bits/stl_map.h:240:7: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/10/bits/stl_map.h:236:7: note: candidate: 'std::map<_Key, _Tp, _Compare, _Alloc>::map(const allocator_type&) [with _Key = int; _Tp = std::set<int>; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, std::set<int> > >; std::map<_Key, _Tp, _Compare, _Alloc>::allocator_type = std::allocator<std::pair<const int, std::set<int> > >]'
236 | map(const allocator_type& __a)
| ^~~
/usr/include/c++/10/bits/stl_map.h:236:33: note: no known conversion for argument 1 from 'const int' to 'const allocator_type&' {aka 'const std::allocator<std::pair<const int, std::set<int> > >&'}
236 | map(const allocator_type& __a)
| ~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/10/bits/stl_map.h:228:7: note: candidate: 'std::map<_Key, _Tp, _Compare, _Alloc>::map(std::initializer_list<std::pair<const _Key, _Tp> >, const _Compare&, const allocator_type&) [with _Key = int; _Tp = std::set<int>; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, std::set<int> > >; std::map<_Key, _Tp, _Compare, _Alloc>::allocator_type = std::allocator<std::pair<const int, std::set<int> > >]'
228 | map(initializer_list<value_type> __l,
| ^~~
/usr/include/c++/10/bits/stl_map.h:228:40: note: no known conversion for argument 1 from 'const int' to 'std::initializer_list<std::pair<const int, std::set<int> > >'
228 | map(initializer_list<value_type> __l,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/10/bits/stl_map.h:215:7: note: candidate: 'std::map<_Key, _Tp, _Compare, _Alloc>::map(std::map<_Key, _Tp, _Compare, _Alloc>&&) [with _Key = int; _Tp = std::set<int>; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, std::set<int> > >]'
215 | map(map&&) = default;
| ^~~
/usr/include/c++/10/bits/stl_map.h:215:11: note: no known conversion for argument 1 from 'const int' to 'std::map<int, std::set<int> >&&'
215 | map(map&&) = default;
| ^~~~~
/usr/include/c++/10/bits/stl_map.h:207:7: note: candidate: 'std::map<_Key, _Tp, _Compare, _Alloc>::map(const std::map<_Key, _Tp, _Compare, _Alloc>&) [with _Key = int; _Tp = std::set<int>; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, std::set<int> > >]'
207 | map(const map&) = default;
| ^~~
/usr/include/c++/10/bits/stl_map.h:207:11: note: no known conversion for argument 1 from 'const int' to 'const std::map<int, std::set<int> >&'
207 | map(const map&) = default;
| ^~~~~~~~~~
/usr/include/c++/10/bits/stl_map.h:194:7: note: candidate: 'std::map<_Key, _Tp, _Compare, _Alloc>::map(const _Compare&, const allocator_type&) [with _Key = int; _Tp = std::set<int>; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, std::set<int> > >; std::map<_Key, _Tp, _Compare, _Alloc>::allocator_type = std::allocator<std::pair<const int, std::set<int> > >]'
194 | map(const _Compare& __comp,
| ^~~
/usr/include/c++/10/bits/stl_map.h:194:27: note: no known conversion for argument 1 from 'const int' to 'const std::less<int>&'
194 | map(const _Compare& __comp,
| ~~~~~~~~~~~~~~~~^~~~~~
/usr/include/c++/10/bits/stl_map.h:185:7: note: candidate: 'std::map<_Key, _Tp, _Compare, _Alloc>::map() [with _Key = int; _Tp = std::set<int>; _Compare = std::less<int>; _Alloc = std::allocator<std::pair<const int, std::set<int> > >]'
185 | map() = default;
| ^~~
/usr/include/c++/10/bits/stl_map.h:185:7: note: candidate expects 0 arguments, 1 provided
palindrome.cpp: In function 'void banana(std::string)':
palindrome.cpp:41:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
41 | freopen((nome+".txt").c_str(),"r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
palindrome.cpp:42:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
42 | freopen((nome+"_in"+".txt").c_str(),"w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~