函数写法:

#include <iostream>
using namespace std;
int a,b;
int main() 
{
    cin>>a>>b;
    cout<<max(a,b);
    return 0;
}

打擂台的写法:

#include<bits/stdc++.h>//万能库
using namespace std;
int a,b;
int main()
{
cin>>a>>b;
if(a>b)cout<<a;
else cout<<b;
return 0;
}

ps:我个人不太喜欢打擂台,少打点字它不香吗