Main.cc: In function 'int main()':
Main.cc:4:16: error: two or more data types in declaration of 'd'
bool bool d[11]={0};
^
Main.cc:6:17: warning: for increment expression has no effect [-Wunused-value]
for(int j=1;;j<=i){
^
Main.cc:7:16: warning: statement has no effect [-Wunused-value]
if(j>10) j%10;
^
Main.cc:8:6: error: 'd' was not declared in this scope
d[j]=1;
^
Main.cc:12:6: error: 'd' was not declared in this scope
if(d[1]==0){
^