int x = 0x3f3f3f3f;
long long y;
y = x + x + x;
cout << y;
结果 -1111638595 说明int类型的数据运算结果仍为int类型
int x = 0x3f3f3f3f;
long long y;
y = 1LL * (x + x + x);
cout << y;
结果 -1111638595 因为( x + x + x ) 的结果为int类型,已溢出
int x = 0x3f3f3f3f;
long long y;
y = 1LL*x + x + x;
cout << y;
结果 3183328701