Main.cc: In function ‘int main()’: Main.cc:10:6: error: ‘f’ was not declared in this scope if(f[lis]<=a[i]) f[++lis]=a[i]; ^ Main.cc:17:12: error: expected primary-expression before ‘<=’ token if(mid)<=a[i] ^~