#include <iostream>
#include <vector>
#include <algorithm>
int main() {
while(1) {
std::vector<int> arr;
for(int i = 0; i<3; ++i) {
std::cout << "Num " << i+1 << ": ";
int temp;
std::cin >> temp;
arr.push_back(temp);
}
std::sort(arr.begin(), arr.end());
std::cout << std::endl << "Max: " << arr[arr.size()-1] << std::endl << std::endl;
#include <iostream>
#include <vector>
#include <algorithm>
int main() {
while(1) {
std::vector<int> arr;
for(int i = 0; i<3; ++i) {
std::cout << "Num " << i+1 << ": ";
int temp;
std::cin >> temp;
arr.push_back(temp);
}
std::sort(arr.begin(), arr.end());
std::cout << std::endl << "Max: " << arr[arr.size()-1] << std::endl << std::endl;
}
}