记录详情

Runtime Error

foo.c: In function 'main':
foo.c:6:11: warning: format '%ld' expects argument of type 'long int *', but argument 2 has type 'long long int *' [-Wformat=]
  scanf("%ld%ld",&n,&m);
         ~~^     ~~
         %lld
foo.c:6:14: warning: format '%ld' expects argument of type 'long int *', but argument 3 has type 'long long int *' [-Wformat=]
  scanf("%ld%ld",&n,&m);
            ~~^     ~~
            %lld
foo.c:16:12: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=]
  printf("%ld",num);
          ~~^
          %lld
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%ld%ld",&n,&m);
  ^~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 0ms 256.0 KiB
#2 Accepted 0ms 288.0 KiB
#3 Accepted 0ms 256.0 KiB
#4 Runtime Error Floating point exception 0ms 288.0 KiB
#5 Runtime Error Floating point exception 0ms 256.0 KiB
#6 Runtime Error Floating point exception 0ms 288.0 KiB
#7 Runtime Error Floating point exception 0ms 256.0 KiB
#8 Runtime Error Floating point exception 1ms 288.0 KiB
#9 Runtime Error Floating point exception 1ms 256.0 KiB
#10 Runtime Error Floating point exception 2ms 256.0 KiB
#11 Runtime Error Floating point exception 1ms 256.0 KiB
#12 Runtime Error Floating point exception 2ms 292.0 KiB
#13 Runtime Error Floating point exception 2ms 292.0 KiB
#14 Runtime Error Floating point exception 2ms 256.0 KiB

信息

递交者
类型
递交
题目
P1303 G. Mathforces
比赛
南京师范大学2021年11月程序设计竞赛
语言
C
递交时间
2021-11-21 16:27:20
评测时间
2021-11-21 16:27:20
评测机
分数
45
总耗时
22ms
峰值内存
292.0 KiB