#include<iostream>
using namespace std;
int main()
{
int n = 0x7fffffff;
cout << "int up:" << n << endl;
n = (1 << 31) - 1;
cout << "int up:" << n << endl;
n++;
cout << "int down:" << n;
return 0;
}
#include<iostream>
using namespace std;
int main()
{
int n = 0x7fffffff;
cout << "int up:" << n << endl;
n = (1 << 31) - 1;
cout << "int up:" << n << endl;
n++;
cout << "int down:" << n;
return 0;
}