记录详情

Runtime Error

/in/foo.c: In function 'main':
/in/foo.c:9:11: warning: 'm' flag used with '%d' gnu_scanf format [-Wformat=]
  scanf("%md",&n);
           ^
/in/foo.c:9:11: warning: format '%md' expects argument of type 'int *', but argument 2 has type 'long int *' [-Wformat=]
  scanf("%md",&n);
         ~~^  ~~
         %mld
/in/foo.c:12:12: warning: 'm' flag used with '%d' gnu_scanf format [-Wformat=]
   scanf("%md",&a[i]);
            ^
/in/foo.c:13:11: warning: passing argument 1 of 'moveleft' from incompatible pointer type [-Wincompatible-pointer-types]
  moveleft(a,n);
           ^
/in/foo.c:3:6: note: expected 'long int *' but argument is of type 'int *'
 void moveleft(long int a[],long int n);
      ^~~~~~~~
/in/foo.c:14:9: warning: passing argument 1 of 'output' from incompatible pointer type [-Wincompatible-pointer-types]
  output(a,n);
         ^
/in/foo.c:4:6: note: expected 'long int *' but argument is of type 'int *'
 void output(long int a[],long int n);
      ^~~~~~
/in/foo.c: In function 'output':
/in/foo.c:29:10: warning: too many arguments for format [-Wformat-extra-args]
   printf("%md ",a[i]);
          ^~~~~~
# 状态 耗时 内存占用
#1 Runtime Error 1ms 200.0 KiB
#2 Runtime Error 1ms 188.0 KiB

信息

递交者
类型
递交
题目
1-3 序列循环左移
语言
C
递交时间
2018-12-01 00:02:15
评测时间
2018-12-01 00:02:15
评测机
分数
0
总耗时
2ms
峰值内存
200.0 KiB