/ Vijos /

记录详情

Runtime Error

/in/foo.c: In function 'main':
/in/foo.c:4:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
  scanf("%d",N);
          ^
/in/foo.c:8:16: warning: statement with no effect [-Wunused-value]
  for (i=0;i<n;i+1){
               ~^~
/in/foo.c:9:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
  scanf("%d",a[i]);
          ^
/in/foo.c:13:11: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
  printf("%f",S);
           ^
/in/foo.c:11:9: warning: variable 'A' set but not used [-Wunused-but-set-variable]
  double A=0;
         ^
/in/foo.c:4:2: warning: 'N' is used uninitialized in this function [-Wuninitialized]
  scanf("%d",N);
  ^~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Runtime Error 1ms 312.0 KiB
#2 Runtime Error 1ms 312.0 KiB
#3 Runtime Error 1ms 356.0 KiB
#4 Runtime Error 1ms 308.0 KiB
#5 Runtime Error 1ms 312.0 KiB
#6 Runtime Error 1ms 336.0 KiB
#7 Runtime Error 1ms 364.0 KiB
#8 Runtime Error 1ms 316.0 KiB
#9 Runtime Error 1ms 360.0 KiB
#10 Runtime Error 1ms 272.0 KiB

信息

递交者
类型
递交
题目
P1742 数据统计
语言
C
递交时间
2021-09-29 08:11:24
评测时间
2021-09-29 08:11:24
评测机
分数
0
总耗时
12ms
峰值内存
364.0 KiB