#include #include using namespace std; int convert(string a) { int out = 0; int counter = 1; //cout< 0; i--) { if(a[i] == '1' ) { out += counter; //cout<<"found one at "<< a[i] ; } //cout<< " current index "<< i <<" at character "< a) { int out = a[0]; for (int i =1; i < a.size(); i++) { if (a[i] > out) { out = a[i]; } } return out; } int main() { vector test; test.push_back(2); test.push_back(6); test.push_back(-7); test.push_back(1); test.push_back(0); test.push_back(1); test.push_back(4); cout<