Main.cc: In function 'int main()': Main.cc:14:8: error: 'a' was not declared in this scope if(a[i]==b[i]){ ^ Main.cc:14:14: error: 'b' was not declared in this scope if(a[i]==b[i]){ ^