记录详情

Runtime Error

/in/foo.c: In function 'main':
/in/foo.c:6:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long int *' [-Wformat=]
  scanf("%d",&n) ;
         ~^  ~~
         %ld
/in/foo.c:9:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long int *' [-Wformat=]
  scanf("%d",&a[i]);
         ~^  ~~~~~
         %ld
/in/foo.c:15:12: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
   printf("%d ",a[i]);
           ~^   ~~~~
           %ld
/in/foo.c:14:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(i=0;i<n;i++)
  ^~~
/in/foo.c:16:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   printf("\n");
   ^~~~~~
# 状态 耗时 内存占用
#1 Runtime Error 1ms 200.0 KiB
#2 Runtime Error 1ms 188.0 KiB

信息

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