Main.cc: In function 'int main()':
Main.cc:9:24: error: 'a' was not declared in this scope
ans+=(s[i]-'0')*pow(a,len-1-i)
^
Main.cc:13:24: error: 'a' was not declared in this scope
ans+=(s[i]-'0')*pow(a,d-1-i)
^
Main.cc:16:24: error: 'a' was not declared in this scope
ans+=(s[i]-'0')*pow(a,d-1-i)
^