Main.cpp:133:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
133 | main() {
| ^~~~
Main.cpp: In function 'int main()':
Main.cpp:11:12: error: reference to 'make_pair' is ambiguous
11 | #define mp make_pair
| ^~~~~~~~~
Main.cpp:142:2: note: in expansion of macro 'mp'
142 | mp[v[0]] = 1;
| ^~
In file included from /usr/include/c++/10/bits/stl_algobase.h:64,
from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from Main.cpp:1:
/usr/include/c++/10/bits/stl_pair.h:567:5: note: candidates are: 'template<class _T1, class _T2> constexpr std::pair<typename std::__strip_reference_wrapper<typename std::decay<_Tp>::type>::__type, typename std::__strip_reference_wrapper<typename std::decay<_Tp2>::type>::__type> std::make_pair(_T1&&, _T2&&)'
567 | make_pair(_T1&& __x, _T2&& __y)
| ^~~~~~~~~
Main.cpp:11:12: note: 'std::unordered_map<long long int, long long int> make_pair'
11 | #define mp make_pair
| ^~~~~~~~~
Main.cpp:107:26: note: in expansion of macro 'mp'
107 | unordered_map <int, int> mp;
| ^~
Main.cpp:144:20: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int, std::allocator<long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
144 | for (int i = 1; i < v.size() ;i++) {
| ~~^~~~~~~~~~
Main.cpp:11:12: error: reference to 'make_pair' is ambiguous
11 | #define mp make_pair
| ^~~~~~~~~
Main.cpp:146:3: note: in expansion of macro 'mp'
146 | mp[v[i]] = cnt;
| ^~
In file included from /usr/include/c++/10/bits/stl_algobase.h:64,
from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from Main.cpp:1:
/usr/include/c++/10/bits/stl_pair.h:567:5: note: candidates are: 'template<class _T1, class _T2> constexpr std::pair<typename std::__strip_reference_wrapper<typename std::decay<_Tp>::type>::__type, typename std::__strip_reference_wrapper<typename std::decay<_Tp2>::type>::__type> std::make_pair(_T1&&, _T2&&)'
567 | make_pair(_T1&& __x, _T2&& __y)
| ^~~~~~~~~
Main.cpp:11:12: note: 'std::unordered_map<long long int, long long int> make_pair'
11 | #define mp make_pair
| ^~~~~~~~~
Main.cpp:107:26: note: in expansion of macro 'mp'
107 | unordered_map <int, int> mp;
| ^~
Main.cpp:11:12: error: reference to 'make_pair' is ambiguous
11 | #define mp make_pair
| ^~~~~~~~~
Main.cpp:149:10: note: in expansion of macro 'mp'
149 | l[i] = mp[l[i]];
| ^~
In file included from /usr/include/c++/10/bits/stl_algobase.h:64,
from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from Main.cpp:1:
/usr/include/c++/10/bits/stl_pair.h:567:5: note: candidates are: 'template<class _T1, class _T2> constexpr std::pair<typename std::__strip_reference_wrapper<typename std::decay<_Tp>::type>::__type, typename std::__strip_reference_wrapper<typename std::decay<_Tp2>::type>::__type> std::make_pair(_T1&&, _T2&&)'
567 | make_pair(_T1&& __x, _T2&& __y)
| ^~~~~~~~~
Main.cpp:11:12: note: 'std::unordered_map<long long int, long long int> make_pair'
11 | #define mp make_pair
| ^~~~~~~~~
Main.cpp:107:26: note: in expansion of macro 'mp'
107 | unordered_map <int, int> mp;
| ^~
Main.cpp:11:12: error: reference to 'make_pair' is ambiguous
11 | #define mp make_pair
| ^~~~~~~~~
Main.cpp:150:10: note: in expansion of macro 'mp'
150 | r[i] = mp[r[i]];
| ^~
In file included from /usr/include/c++/10/bits/stl_algobase.h:64,
from /usr/include/c++/10/bits/char_traits.h:39,
from /usr/include/c++/10/ios:40,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from Main.cpp:1:
/usr/include/c++/10/bits/stl_pair.h:567:5: note: candidates are: 'template<class _T1, class _T2> constexpr std::pair<typename std::__strip_reference_wrapper<typename std::decay<_Tp>::type>::__type, typename std::__strip_reference_wrapper<typename std::decay<_Tp2>::type>::__type> std::make_pair(_T1&&, _T2&&)'
567 | make_pair(_T1&& __x, _T2&& __y)
| ^~~~~~~~~
Main.cpp:11:12: note: 'std::unordered_map<long long int, long long int> make_pair'
11 | #define mp make_pair
| ^~~~~~~~~
Main.cpp:107:26: note: in expansion of macro 'mp'
107 | unordered_map <int, int> mp;
| ^~