记录详情

Runtime Error

foo.cc: In function 'int gcd(int, int)':
foo.cc:5:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  while (r = m % n)
         ~~^~~~~~~
foo.cc: In function 'int main()':
foo.cc:15:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  while (scanf("%d", &n), n > 0)
         ~~~~~~~~~~~~~~~^~~~~~~
foo.cc:17:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   for (i = 0; i < n; i++)scanf("%d", &a[i]);
                          ~~~~~^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Time Exceeded ≥1417ms ≥324.0 KiB
#2 Time Exceeded ≥1414ms ≥288.0 KiB
#3 Time Exceeded ≥1400ms ≥300.0 KiB
#4 Time Exceeded ≥1404ms ≥328.0 KiB
#5 Runtime Error Floating point exception 109ms 292.0 KiB

信息

递交者
类型
递交
题目
5-4 最小公倍数
比赛
2021(四) 作业第一场:秀肌肉
语言
C++
递交时间
2021-09-30 11:27:03
评测时间
2021-09-30 11:27:03
评测机
分数
0
总耗时
5746ms
峰值内存
328.0 KiB