maksymalny wektor c

cout<<*max_element(a.begin(), a.end())<<endl;
Thoughtless Tiger