fork download
  1. program TEST
  2. ! your code goes here
  3. ! (2^((2^(1031-1))-1))*(2-(2^-3705346855594118253554271520278013051304639509300498049262642688253220148476920))
  4.  
  5. real(16) :: x
  6. real(16), parameter :: a = 2
  7. real(16), parameter :: b = 1031
  8. real(16), parameter :: c = 1
  9. real(16), parameter :: d = -3705346855594118253554271520278013051304639509300498049262642688253220148476920
  10. x = (a ** ((a ** (b - c)) - c)) * (a - (a ** d))
  11. write(*,*) x
  12.  
  13. stop
  14. end
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.f95:5:1:

  real(16) :: x
 1
Warning: Nonconforming tab character at (1) [-Wtabs]
prog.f95:6:1:

  real(16), parameter    :: a = 2
 1
Warning: Nonconforming tab character at (1) [-Wtabs]
prog.f95:7:1:

  real(16), parameter    :: b = 1031
 1
Warning: Nonconforming tab character at (1) [-Wtabs]
prog.f95:8:1:

  real(16), parameter    :: c = 1
 1
Warning: Nonconforming tab character at (1) [-Wtabs]
prog.f95:9:1:

  real(16), parameter    :: d = -3705346855594118253554271520278013051304639509300498049262642688253220148476920
 1
Warning: Nonconforming tab character at (1) [-Wtabs]
prog.f95:9:111:

  real(16), parameter    :: d = -3705346855594118253554271520278013051304639509300498049262642688253220148476920
                                                                                                               1
Error: Integer too big for its kind at (1). This check can be disabled with the option -fno-range-check
prog.f95:10:1:

  x = (a ** ((a ** (b - c)) - c)) * (a - (a ** d))
 1
Warning: Nonconforming tab character at (1) [-Wtabs]
prog.f95:11:1:

  write(*,*) x
 1
Warning: Nonconforming tab character at (1) [-Wtabs]
prog.f95:13:1:

  stop
 1
Warning: Nonconforming tab character at (1) [-Wtabs]
prog.f95:10:7:

  x = (a ** ((a ** (b - c)) - c)) * (a - (a ** d))
       1
Error: Arithmetic overflow at (1)
stdout
Standard output is empty