记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:13:23: warning: 'n' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<"gcd="<<gcd(m,n)<<endl;
                       ^
/in/foo.cc:5:6: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized]
  if(m%n==0) return n;
     ~^~
/in/foo.cc:11:8: note: 'm' was declared here
  int t,m,n;
        ^
# 状态 耗时 内存占用
#1 Runtime Error 4ms 364.0 KiB
#2 Runtime Error 3ms 256.0 KiB
#3 Runtime Error 3ms 256.0 KiB
#4 Runtime Error 2ms 264.0 KiB
#5 Runtime Error 3ms 344.0 KiB
#6 Runtime Error 2ms 384.0 KiB

信息

递交者
类型
递交
题目
求最大公约数
题目数据
下载
语言
C++
递交时间
2018-02-08 14:54:45
评测时间
2018-02-08 14:54:45
评测机
分数
0
总耗时
20ms
峰值内存
384.0 KiB