记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:13:86: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare]
   13 |         if(a % abs(b) == 0 && ((a < 0 && b > 0) || (a > 0 && b < 0)) || (a == 0 && a == b))
      |                                                                                    ~~^~~~
foo.cc:13:28: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   13 |         if(a % abs(b) == 0 && ((a < 0 && b > 0) || (a > 0 && b < 0)) || (a == 0 && a == b))
      |            ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Floating point exception 3ms 384.0 KiB

信息

递交者
类型
自测
题目
P1229 A 阅读程序
语言
C++
递交时间
2022-08-21 19:33:57
评测时间
2022-08-21 19:33:57
评测机
分数
0
总耗时
3ms
峰值内存
384.0 KiB