记录详情

Runtime Error

foo.cc: In function 'int lcm(int, int)':
foo.cc:31:6: warning: unused variable 'lcm' [-Wunused-variable]
  int lcm=a/gcd(a,b)*b;
      ^~~
foo.cc:32:2: warning: no return statement in function returning non-void [-Wreturn-type]
  }
  ^
foo.cc: In function 'int main()':
foo.cc:8:9: warning: 'n' is used uninitialized in this function [-Wuninitialized]
  int a[n];
         ^
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Wrong Answer Read 5, expect 6875. 1ms 384.0 KiB
#2 Runtime Error Segmentation fault 1ms 384.0 KiB
#3 Wrong Answer Read 1, expect 250795770. 1ms 384.0 KiB
#4 Runtime Error Segmentation fault 2ms 384.0 KiB
#5 Runtime Error Segmentation fault 1ms 384.0 KiB

信息

递交者
类型
递交
题目
5-4 最小公倍数
比赛
2020苏青奥赛集训营(2021-3-14课后作业)
语言
C++
递交时间
2021-03-15 20:41:30
评测时间
2021-03-15 20:41:30
评测机
分数
0
总耗时
9ms
峰值内存
384.0 KiB