c++ -x c++ -O2 -o /tmp/a - <<'EOF' #include using namespace std; int main(){ vectorA={2,3,4,5,7,9,11,13,16,17,19,23,25,29,31,36,37,41,43,47,49}; int N=21,M=1<>>T; for(int i=0;in(M);vectorS(M),Q(M); for(int m=1;m>R; for(int m=1;m2){long long u=4LL*(1LL*n[m]*Q[m]-1LL*S[m]*S[m]),d=1LL*n[m]*n[m];if(u%d==0){auto it=T.find(u/d);if(it!=T.end())for(auto [i,j]:it->second)if((m>>i& 1)&&(m>>j& 1))R.insert({i,j});}} for(auto [i,j]:R)cout<