Main.cc: In function 'int main()':
Main.cc:8:25: warning: left operand of comma operator has no effect [-Wunused-value]
for(int i=0,j=len-1;i=0;i++,j--)
^
Main.cc:10:17: error: invalid operands of types 'char' and 'const char [2]' to binary 'operator-'
sum+=((a[j]-"0")*pow(2,i));
^