Main.cc: In function 'int main()':
Main.cc:2:2: error: 'string' was not declared in this scope
string s;
^
Main.cc:3:2: error: 'cin' was not declared in this scope
cin>>s;
^
Main.cc:3:7: error: 's' was not declared in this scope
cin>>s;
^
Main.cc:25:16: error: 'pow' was not declared in this scope
sum+=pow(2,i)*a[i];
^
Main.cc:28:3: error: 'cout' was not declared in this scope
cout<