answer.code:9:10: error: reference to ‘tie’ is ambiguous
9 | bool cmp(tie w,tie s)
| ^~~
In file included from /usr/include/c++/13/bits/uses_allocator_args.h:38,
from /usr/include/c++/13/bits/memory_resource.h:41,
from /usr/include/c++/13/string:58,
from /usr/include/c++/13/bits/locale_classes.h:40,
from /usr/include/c++/13/bits/ios_base.h:41,
from /usr/include/c++/13/ios:44,
from /usr/include/c++/13/ostream:40,
from /usr/include/c++/13/iostream:41,
from answer.code:1:
/usr/include/c++/13/tuple:2155:5: note: candidates are: ‘template<class ... _Elements> constexpr std::tuple<_Elements& ...> std::tie(_Elements& ...)’
2155 | tie(_Elements&... __args) noexcept
| ^~~
answer.code:4:8: note: ‘struct tie’
4 | struct tie{
| ^~~
answer.code:9:16: error: reference to ‘tie’ is ambiguous
9 | bool cmp(tie w,tie s)
| ^~~
/usr/include/c++/13/tuple:2155:5: note: candidates are: ‘template<class ... _Elements> constexpr std::tuple<_Elements& ...> std::tie(_Elements& ...)’
2155 | tie(_Elements&... __args) noexcept
| ^~~
answer.code:4:8: note: ‘struct tie’
4 | struct tie{
| ^~~
answer.code:9:21: error: expression list treated as compound expression in initializer [-fpermissive]
9 | bool cmp(tie w,tie s)
| ^
answer.code: In function ‘int main()’:
answer.code:25:17: error: reference to ‘tie’ is ambiguous
25 | tie q[100001];
| ^~~
/usr/include/c++/13/tuple:2155:5: note: candidates are: ‘template<class ... _Elements> constexpr std::tuple<_Elements& ...> std::tie(_Elements& ...)’
2155 | tie(_Elements&... __args) noexcept
| ^~~
answer.code:4:8: note: ‘struct tie’
4 | struct tie{
| ^~~
answer.code:28:30: error: ‘q’ was not declared in this scope
28 | cin>>q[i].e>>q[i].l;
| ^
answer.code:31:22: error: ‘q’ was not declared in this scope
31 | sort(q,q+n,cmp);
| ^