#include <set> using namespace std; int min(int a, int b, int c, int d){ int myints[] = { a, b, c, d }; set<int> myset(myints, myints + 4);
return *myset.begin(); };
int min(int a, int b, int c, int d) { int m=a; if (b<m) m=b; if (c<m) m=c; if (d<m) m=d;
return m; }
#include <set>
using namespace std;
int min(int a, int b, int c, int d){
int myints[] = { a, b, c, d };
set<int> myset(myints, myints + 4);
return *myset.begin();
};