***(构建二叉搜索树+判断是否是完全二叉树)是否是完全二叉搜索树(二叉搜索树不一定是完全二叉树)(构造树用函数,位置从1开始,再使用一个tree[N]数组)(输出时判断是否为0来判断是否输出)
代码:#include<bits/stdc++.h>using namespace std;#define N 40int n;int tree[N]; //1 2 3 4 5 6 7int max1=0;void create(int x,int pos){ if(tree[pos]==0) { tree[pos]=x; max1=max(max1,pos); } else {






