/ Vijos /

记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:47:26: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
   47 |    if(op[1]==1) printf("%d\n",op[0]);
      |                         ~^    ~~~~~
      |                          |      |
      |                          int    long long int
      |                         %lld
foo.c:48:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
   48 |    else printf("%d/%d\n",op[0],op[1]);
      |                 ~^       ~~~~~
      |                  |         |
      |                  int       long long int
      |                 %lld
foo.c:48:21: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
   48 |    else printf("%d/%d\n",op[0],op[1]);
      |                    ~^          ~~~~~
      |                     |            |
      |                     int          long long int
      |                    %lld
foo.c:59:26: warning: format '%lld' expects a matching 'long long int' argument [-Wformat=]
   59 |    if(no==1) printf("[%lld],op[0]");
      |                       ~~~^
      |                          |
      |                          long long int
foo.c:19:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   19 |   scanf(" %s",s);
      |   ^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 256.0 KiB
#2 Accepted 2ms 256.0 KiB
#3 Wrong Answer 1a2,3 > [0;1,11] > [0;1,1,4,1 2ms 256.0 KiB
#4 Wrong Answer 1a2,9 > 3/2 > 10/7 > 43/30 2ms 256.0 KiB
#5 Accepted 2ms 256.0 KiB

信息

递交者
类型
递交
题目
P1696 数与连分数
语言
C
递交时间
2022-04-16 17:14:43
评测时间
2022-04-16 17:14:43
评测机
分数
60
总耗时
12ms
峰值内存
256.0 KiB