Main.cc: In function 'int main()': Main.cc:13:11: error: invalid types 'int[int]' for array subscript int d=a[1],s=1; ^ Main.cc:15:6: error: 's' was not declared in this scope if(s