Main.cc: In function 'int main()': Main.cc:4:49: error: scalar object 'a' requires one element in initializer int a={0,31,28,31,30,31,30,31,31,30,31,30,31},m,d; ^