记录详情

Runtime Error

/in/foo.c: In function 'main':
/in/foo.c:9:11: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
   scanf("%d",min);
           ^
/in/foo.c:5:32: warning: unused variable 'z' [-Wunused-variable]
  int x,y,max,min,c,m,a,cnt=0,b,z,i,n;
                                ^
/in/foo.c:5:30: warning: unused variable 'b' [-Wunused-variable]
  int x,y,max,min,c,m,a,cnt=0,b,z,i,n;
                              ^
/in/foo.c:5:24: warning: unused variable 'cnt' [-Wunused-variable]
  int x,y,max,min,c,m,a,cnt=0,b,z,i,n;
                        ^~~
/in/foo.c:5:22: warning: unused variable 'a' [-Wunused-variable]
  int x,y,max,min,c,m,a,cnt=0,b,z,i,n;
                      ^
/in/foo.c:5:8: warning: unused variable 'y' [-Wunused-variable]
  int x,y,max,min,c,m,a,cnt=0,b,z,i,n;
        ^
/in/foo.c:23:10: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized]
     x=max*m+1;
       ~~~^~
/in/foo.c:12:13: warning: 'min' may be used uninitialized in this function [-Wmaybe-uninitialized]
    while(max%min!=0)
          ~~~^~~~
# 状态 耗时 内存占用
#1 Runtime Error 1ms 288.0 KiB
#2 Runtime Error 1ms 316.0 KiB
#3 Runtime Error 1ms 320.0 KiB
#4 Runtime Error 1ms 272.0 KiB
#5 Runtime Error 1ms 356.0 KiB

信息

递交者
类型
递交
题目
5-2 模运算的逆元
比赛
2023 程序设计与竞赛(作业3:中秋和国庆)
语言
C
递交时间
2023-10-01 17:18:23
评测时间
2023-10-01 17:18:23
评测机
分数
0
总耗时
6ms
峰值内存
356.0 KiB