sorting.cpp: In function 'bool possi(long long int)':
sorting.cpp:7:15: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type' {aka 'struct std::pair<long long int, long long int>'} has no member named 'f'
7 | #define first f
| ^
sorting.cpp:17:42: note: in expansion of macro 'first'
17 | for(ll i=0;i<limit;i++) swap(a[em[i].first],a[em[i].second]);
| ^~~~~
sorting.cpp:8:16: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type' {aka 'struct std::pair<long long int, long long int>'} has no member named 's'
8 | #define second s
| ^
sorting.cpp:17:57: note: in expansion of macro 'second'
17 | for(ll i=0;i<limit;i++) swap(a[em[i].first],a[em[i].second]);
| ^~~~~~
sorting.cpp:8:16: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, int> >, std::pair<long long int, int> >::value_type' {aka 'struct std::pair<long long int, int>'} has no member named 's'
8 | #define second s
| ^
sorting.cpp:23:36: note: in expansion of macro 'second'
23 | for(int i=0;i<N;i++) p[temp[i].second]=i;
| ^~~~~~
sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:7:15: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type' {aka 'struct std::pair<long long int, long long int>'} has no member named 'f'
7 | #define first f
| ^
sorting.cpp:46:15: note: in expansion of macro 'first'
46 | em[i].first=X[i];
| ^~~~~
sorting.cpp:8:16: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type' {aka 'struct std::pair<long long int, long long int>'} has no member named 's'
8 | #define second s
| ^
sorting.cpp:47:15: note: in expansion of macro 'second'
47 | em[i].second=Y[i];
| ^~~~~~
sorting.cpp:7:15: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type' {aka 'struct std::pair<long long int, long long int>'} has no member named 'f'
7 | #define first f
| ^
sorting.cpp:61:42: note: in expansion of macro 'first'
61 | for(ll i=0;i<limit;i++) swap(a[em[i].first],a[em[i].second]);
| ^~~~~
sorting.cpp:8:16: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type' {aka 'struct std::pair<long long int, long long int>'} has no member named 's'
8 | #define second s
| ^
sorting.cpp:61:57: note: in expansion of macro 'second'
61 | for(ll i=0;i<limit;i++) swap(a[em[i].first],a[em[i].second]);
| ^~~~~~
sorting.cpp:8:16: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, int> >, std::pair<long long int, int> >::value_type' {aka 'struct std::pair<long long int, int>'} has no member named 's'
8 | #define second s
| ^
sorting.cpp:66:36: note: in expansion of macro 'second'
66 | for(int i=0;i<N;i++) p[temp[i].second]=i;
| ^~~~~~
sorting.cpp:78:15: error: 'R' was not declared in this scope
78 | P[R]=ciclo[0];
| ^