Main.cc: In function 'int main()':
Main.cc:7:10: error: conflicting declaration 'int a [64]'
int a[64]={};
^
Main.cc:5:6: note: previous declaration as 'int a'
int a;
^
Main.cc:9:5: error: 'n' was not declared in this scope
if(n==0){
^
Main.cc:12:8: error: 'n' was not declared in this scope
while(n!=0){
^
Main.cc:13:6: error: invalid types 'int[int]' for array subscript
a[i]=n%2;
^
Main.cc:18:12: error: invalid types 'int[int]' for array subscript
cout<