sorting.cpp: In constructor 'PERM::PERM(VI)':
sorting.cpp:51:19: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
51 | n = a.size();
| ~~~~~~^~
sorting.cpp: In function 'PERM operator*(const PERM&, PII)':
sorting.cpp:64:9: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
64 | auto[x, y] = p;
| ^
sorting.cpp: In function 'void operator*=(PERM&, PII)':
sorting.cpp:71:9: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
71 | auto[x, y] = p;
| ^
sorting.cpp: In function 'bool f(const VI&, const VPI&)':
sorting.cpp:80:20: warning: conversion from 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
80 | int m = op.size();
| ~~~~~~~^~
sorting.cpp:98:9: warning: declaration of 'i' shadows a previous local [-Wshadow]
98 | rep(i, n) if (a[i] != i) return false;
| ^
sorting.cpp:9:28: note: in definition of macro 'rep'
9 | #define rep(i, n) for (int i = 0; i < int(n); ++i)
| ^
sorting.cpp:83:9: note: shadowed declaration is here
83 | int i = 0;
| ^
sorting.cpp: In function 'int findSwapPairs(int, int*, int, int*, int*, int*, int*)':
sorting.cpp:35:13: warning: declaration of 'i' shadows a previous local [-Wshadow]
35 | rep(i, ans.size()) {\
| ^
sorting.cpp:9:28: note: in definition of macro 'rep'
9 | #define rep(i, n) for (int i = 0; i < int(n); ++i)
| ^
sorting.cpp:115:13: note: in expansion of macro 'ANSWER'
115 | ANSWER
| ^~~~~~
sorting.cpp:111:9: note: shadowed declaration is here
111 | rep(i, m+1) {
| ^
sorting.cpp:9:28: note: in definition of macro 'rep'
9 | #define rep(i, n) for (int i = 0; i < int(n); ++i)
| ^
sorting.cpp:39:24: warning: conversion from 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
39 | return ans.size();\
| ~~~~~~~~^~
sorting.cpp:115:13: note: in expansion of macro 'ANSWER'
115 | ANSWER
| ^~~~~~
sorting.cpp:39:24: warning: conversion from 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
39 | return ans.size();\
| ~~~~~~~~^~
sorting.cpp:122:5: note: in expansion of macro 'ANSWER'
122 | ANSWER;
| ^~~~~~