fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. long int x=1000000000;
  7. long long int y=x*x;
  8. cout<<y<<endl;
  9. long long int z=x;
  10. z*=x;
  11. cout<<z<<endl;
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 2896KB
stdin
Standard input is empty
stdout
-1486618624
1000000000000000000