/ Vijos /

记录详情

Runtime Error

foo.c: In function 'main':
foo.c:7:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
    7 |  scanf("%d",k);
      |         ~^  ~
      |          |  |
      |          |  int
      |          int *
foo.c:7:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    7 |  scanf("%d",k);
      |  ^~~~~~~~~~~~~
foo.c:7:2: warning: 'k' is used uninitialized in this function [-Wuninitialized]
    7 |  scanf("%d",k);
      |  ^~~~~~~~~~~~~
foo.c:8:2: warning: 'Sn' is used uninitialized in this function [-Wuninitialized]
    8 |  for(n=1;Sn<=k;n++){
      |  ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 1ms 384.0 KiB
#2 Runtime Error Segmentation fault 1ms 256.0 KiB
#3 Runtime Error Segmentation fault 3ms 256.0 KiB
#4 Runtime Error Segmentation fault 2ms 256.0 KiB
#5 Runtime Error Segmentation fault 1ms 256.0 KiB

信息

递交者
类型
递交
题目
P1127 级数求和
语言
C
递交时间
2022-07-14 20:19:56
评测时间
2022-07-14 20:19:56
评测机
分数
0
总耗时
10ms
峰值内存
384.0 KiB