#include<iostream>
using namespace std;
int main()
{
unsigned int a,b,c,d,t;
cin>>a>>b>>c>>d;
if(a>b)
{t=a;
a=b;
b=t;}
if(b>c)
{t=b;
b=d;
d=t;}
if(c>d)
{t=c;
c=d;
d=t;}
if(a>c)
{t=a;
a=c;
c=t;}
if(b>d)
{t=b;
b=d;
d=t;}
if(a>d)
{t=a;
a=d;
d=t;}
cout<<a<<" "<<b<<" "<<c<<" "<<d<<endl;
return 0;
}
--------------------Configuration: test - Win32 Debug--------------------
Linking...
1.obj : error LNK2005: _main already defined in test.obj
Debug/test.exe : fatal error LNK1169: one or more multiply defined symbols found
执行 link.exe 时出错.
test.exe - 1 error(s), 0 warning(s)