foo.cpp:1:1: error: 'include' does not name a type
include <stdio.h>
^
foo.cpp: In function 'bool judge1(int*, int)':
foo.cpp:4:348: error: 'i2' was not declared in this scope
const int INF=1<<30; bool judge1(int l[MAXN+1],int n){ bool flag=true; int t; int i; if(n==0){ return true; } if(n%2==0){ flag=false; } t=n/2; if(l[1]<l[2]){if(flag==false){ l[n+1]=INF; } for(i=1;i<=t;i++){ if(l[i]<l[i*2]&&l[i]<l[i*2+1]){ } else{return false;} } return true; } else{ if(flag==false){ l[n+1]=-INF; } for(i=1;i<=n/2;i++){ if(l[i]>l[i2]&&l[i]>l[i2+1]){
^
foo.cpp: In function 'bool judge2(int*, int)':
foo.cpp:23:11: error: 'i2' was not declared in this scope
if(l[i]>l[i2]&&l[i]<l[i2+1]){
^
foo.cpp: In function 'int main()':
foo.cpp:43:14: error: 'scanf' was not declared in this scope
scanf("%d",&t);
^
foo.cpp:52:28: error: 'printf' was not declared in this scope
printf("Case #%d: Both\n",i);
^
foo.cpp:55:28: error: 'printf' was not declared in this scope
printf("Case #%d: Heap\n",i);
^
foo.cpp:58:27: error: 'printf' was not declared in this scope
printf("Case #%d: BST\n",i);
^
foo.cpp:61:31: error: 'printf' was not declared in this scope
printf("Case #%d: Neither\n",i);
^