记录详情

Wrong Answer

/in/foo.cc: In function 'int gcd(int)':
/in/foo.cc:23:16: warning: 'n' is used uninitialized in this function [-Wuninitialized]
  for(int i=1; i<n; i++)
               ~^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:25:4: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
   r=x%x1;
   ~^~~~~
/in/foo.cc:22:8: note: 'x' was declared here
  int n,x,r;
        ^
/in/foo.cc: In function 'int gcd(int)':
/in/foo.cc:25:4: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
   r=x%x1;
   ~^~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 220.0 KiB
#2 Wrong Answer 1ms 228.0 KiB
#3 Accepted 1ms 220.0 KiB
#4 Wrong Answer 1ms 224.0 KiB
#5 Wrong Answer 1ms 228.0 KiB

信息

递交者
类型
递交
题目
A6-4 最大公约数专题:多个数的最大公约数
比赛
2020苏青奥赛集训营(2021-2-4实验初中选拔赛)
语言
C++
递交时间
2021-02-04 13:12:07
评测时间
2021-02-04 13:12:07
评测机
分数
40
总耗时
6ms
峰值内存
228.0 KiB