又忘记转换数据类型了;唉#include<iostream>#include<algorithm>#include<math.h>using namespace std;int max3(int a,int b,int c){ int x[3]; x[0]=a; x[1]=b; x[2]=c; sort(x,x+3); return x[2];}int main(){ double m; int a,b,c; cin>>a>>b>>c; m=max3(a+b,b,c...