Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
tuple<int, int, char, int, string> t[111111];
int main() {
	int n;
	cin >> n;
	rep(i, n) {
		rep(j, 5) {
			cin >> get<j>(t[i]);
		}
	}
	sort(t, t + n);
	rep(i, n) {
		rep(j, 5) {
			cout << get<j>(t[i]) << (j == 4 ? "\n" : " ");
		}
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:38: error: no matching function for call to 'get<j>(std::tuple<int, int, char, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >&)'
   10 |                         cin >> get<j>(t[i]);
      |                                ~~~~~~^~~~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
                 from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_pair.h:1250: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(pair<_Tp1, _Tp2>&)'
 1250 |     get(pair<_Tp1, _Tp2>& __in) noexcept
      |     ^~~
/usr/include/c++/14/bits/stl_pair.h:1250:5: note:   template argument deduction/substitution failed:
a.cc:10:38: error: the value of 'j' is not usable in a constant expression
   10 |                         cin >> get<j>(t[i]);
      |                                ~~~~~~^~~~~~
a.cc:9:21: note: 'int j' is not const
    9 |                 rep(j, 5) {
      |                     ^
a.cc:3:26: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int i=0;i<n;i++)
      |                          ^
a.cc:10:38: note: in template argument for type 'long unsigned int'
   10 |                         cin >> get<j>(t[i]);
      |                                ~~~~~~^~~~~~
/usr/include/c++/14/bits/stl_pair.h:1255: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(pair<_Tp1, _Tp2>&&)'
 1255 |     get(pair<_Tp1, _Tp2>&& __in) noexcept
      |     ^~~
/usr/include/c++/14/bits/stl_pair.h:1255:5: note:   template argument deduction/substitution failed:
a.cc:10:38: error: the value of 'j' is not usable in a constant expression
   10 |                         cin >> get<j>(t[i]);
      |                                ~~~~~~^~~~~~
a.cc:9:21: note: 'int j' is not const
    9 |                 rep(j, 5) {
      |                     ^
a.cc:3:26: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int i=0;i<n;i++)
      |                          ^
a.cc:10:38: note: in template argument for type 'long unsigned int'
   10 |                         cin >> get<j>(t[i]);
      |                                ~~~~~~^~~~~~
/usr/include/c++/14/bits/stl_pair.h:1260: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 pair<_Tp1, _Tp2>&)'
 1260 |     get(const pair<_Tp1, _Tp2>& __in) noexcept
      |     ^~~
/usr/include/c++/14/bits/stl_pair.h:1260:5: note:   template argument deduction/substitution failed:
a.cc:10:38: error: the value of 'j' is not usable in a constant expression
   10 |                         cin >> get<j>(t[i]);
      |                                ~~~~~~^~~~~~
a.cc:9:21: note: 'int j' is not const
    9 |                 rep(j, 5) {
      |                     ^
a.cc:3:26: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int i=0;i<n;i++)
      |                          ^
a.cc:10:38: note: in template argument for type 'long unsigned int'
   10 |                         cin >> get<j>(t[i]);
      |                                ~~~~~~^~~~~~
/usr/include/c++/14/bits/stl_pair.h:1265: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 pair<_Tp1, _Tp2>&&)'
 1265 |     get(const pair<_Tp1, _Tp2>&& __in) noexcept
      |     ^~~
/usr/include/c++/14/bits/stl_pair.h:1265:5: note:   template argument deduction/substitution failed:
a.cc:10:38: error: the value of 'j' is not usable in a constant expression
   10 |                         cin >> get<j>(t[i]);
      |                                ~~~~~~^~~~~~
a.cc:9:21: note: 'int j' is not const
    9 |                 rep(j, 5) {
      |                     ^
a.cc:3:26: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int i=0;i<n;i++)
      |                          ^
a.cc:10:38: note: in template argument for type 'long unsigned int'
   10 |                         cin >> get<j>(t[i]);
      |                                ~~~~~~^~~~~~
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
                 from /usr/include/c++/14/string:68,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/tuple:2445:5: note: candidate: 'template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Elements ...> >& std::get(tuple<_Elements ...>&)'
 2445 |     get(tuple<_Elements...>& __t) noexcept
      |     ^~~
/usr/include/c++/14/tuple:2445:5: note:   template argument deduction/substitution failed:
a.cc:10:38: error: the value of 'j' is not usable in a constant expression
   10 |                         cin >> get<j>(t[i]);
      |                                ~~~~~~^~~~~~
a.cc:9:21: note: 'int j' is not const
    9 |                 rep(j, 5) {
      |                     ^
a.cc:3:26: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int i=0;i<n;i++)
      |                          ^
a.cc:10:38: note: in template argument for type 'long unsigned int'
   10 |                         cin >> get<j>(t[i]);
      |                                ~~~~~~^~~~~~
/usr/include/c++/14/tuple:2451:5: note: candidate: 'template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Elements ...> >& std::get(const tuple<_Elements ...>&)'
 2451 |     get(const tuple<_Elements...>& __t) noexcept
      |     ^~~
/usr/include/c++/14/tuple:2451:5: note:   template argument deduction/substitution failed:
a.cc:10:38: error: the value of 'j' is not usable in a constant expression
   10 |                         cin >> get<j>(t[i]);
      |                                ~~~~~~^~~~~~
a.cc:9:21: note: 'int j' is not const
    9 |                 rep(j, 5) {
      |                     ^
a.cc:3:26: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int i=0;i<n;i++)
      |                          ^
a.cc:10:38: note: in template argument for type 'long unsigned int'
   10 |                         cin >> get<j>(t[i]);
      |                                ~~~~~~^~~~~~
/usr/include/c++/14/tuple:2457:5: note: candidate: 'template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Elements ...> >&& std::get(tuple<_Elements ...>&&)'
 2457 |     get(tuple<_Elements...>&& __t) noexcept
      |     ^~~
/usr/include/c++/14/tuple:2457:5: note:   template argument deduction/substitution failed:
a.cc:10:38: error: the value of 'j' is not usable in a constant expression
   10 |                         cin >> get<j>(t[i]);
      |                                ~~~~~~^~~~~~
a.cc:9:21: note: 'int j' is not const
    9 |                 rep(j, 5) {
      |                     ^
a.cc:3:26: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int i=0;i<n;i++)
      |                          ^
a.cc:10:38: note: in template argument for type 'long unsigned int'
   10 |                         cin >> get<j>(t[i]);
      |                                ~~~~~~^~~~~~
/usr/include/c++/14/tuple:2466:5: note: candidate: 'template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Elements ...> >&& std::get(const tuple<_Elements ...>&&)'
 2466 |     get(const tuple<_Elements...>&& __t) noexcept
      |     ^~~
/usr/include/c++/14/tuple:2466:5: note:   template argument deduction/substitution failed:
a.cc:10:38: error: the value of 'j' is not usable in a constant expression
   10 |                         cin >> get<j>(t[i]);
      |                                ~~~~~~^~~~~~
a.cc:9:21: note: 'int j' is not const
    9 |                 rep(j, 5) {
      |                     ^
a.cc:3:26: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int i=0;i<n;i++)
      |                          ^
a.cc:10:38: note: in template argument for type 'long unsigned int'
   10 |                         cin >> get<j>(t[i]);
      |                                ~~~~~~^~~~~~
In file included from /usr/include/c++/14/functional:65,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53:
/usr/include/c++/14/array:390:5: note: candidate: 'template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr _Tp& std::get(array<_Tp, _Nm>&)'
  390 |     get(array<_Tp, _Nm>& __arr) noexcept
      |     ^~~
/usr/include/c++/14/array:390:5: note:   template argument deduction/substitution failed:
a.cc:10:38: error: the value of 'j' is not usable in a constant expression
   10 |                         cin >> get<j>(t[i]);
      |                                ~~~~~~^~~~~~
a.cc:9:21: note: 'int j' is not const
    9 |                 rep(j, 5) {
      |                     ^
a.cc:3:26: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int i=0;i<n;i++)
      |                          ^
a.cc:10:38: note: in template argument for type 'long unsigned int'
   10 |                         cin >> get<j>(t[i]);
      |                                ~~~~~~^~~~~~
/usr/include/c++/14/array:399:5: note: candidate: 'template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr _Tp&& std::get(array<_Tp, _Nm>&&)'
  399 |     get(array<_Tp, _Nm>&& __arr) noexcept
      |     ^~~
/usr/include/c++/14/array:399:5: note:   template argument deduction/substitution failed:
a.cc:10:38: error: the value of 'j' is not usable in a constant expression
   10 |                         cin >> get<j>(t[i]);
      |                                ~~~~~~^~~~~~
a.cc:9:21: note: 'int j' is not const
    9 |                 rep(j, 5) {
      |                     ^
a.cc:3:26: note: in definition of macro 'rep'
    3 | #de