Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:5:20: warning: unused variable 'maxb' [-Wunused-variable]
  int a,b,max,maxab,maxb,s=0,minab,d;
                    ^~~~
/in/foo.cc:33:8: warning: 'max' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<max<<endl;
        ^~~
/in/foo.cc:26:19: warning: 'minab' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if(((1+s)*maxab)%minab==0)
      ~~~~~~~~~~~~~^~~~~~
/in/foo.cc:5:14: warning: 'maxab' may be used uninitialized in this function [-Wmaybe-uninitialized]
  int a,b,max,maxab,maxb,s=0,minab,d;
              ^~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 340.0 KiB
#2 Accepted 2ms 356.0 KiB
#3 Accepted 1ms 336.0 KiB
#4 Accepted 1ms 376.0 KiB
#5 Accepted 1ms 344.0 KiB

信息

递交者
类型
递交
题目
P1062 A6-1 最大公约数专题:最大公约数和最小公倍数
语言
C++
递交时间
2024-05-24 23:32:51
评测时间
2024-05-24 23:32:51
评测机
分数
100
总耗时
9ms
峰值内存
376.0 KiB