gpt4 book ai didi

fortran - gfortran 错误 : Integer too big for its kind at (1)

转载 作者:行者123 更新时间:2023-12-01 22:25:47 24 4
gpt4 key购买 nike

<分区>

我想查看 gfortran 的整数类型

所以我写下这行

write(*,"(1X,I20,'correspond to kind  ',I2)"),11111111111,kind(11111111111)

会有编译错误说

precision of type test.f90:67:57: Error: Integer too big for its kind at (1). Th is check can be disabled with the option -fno-range-check

所以我尝试使用 -fno-range-check 重新编译。但它给出了结果

-1773790777correspond to kind 4

怎么了?另一方面,intel fortran给出了没有错误和正确的答案

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com