Main.cc: In function 'int main()': Main.cc:9:24: error: 'n' was not declared in this scope if(a[i]==a[i+2]&&i+2