/ Vijos /

记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:8:10: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'unsigned char (*)[10001]' [-Wformat=]
  scanf("%s %s",&tp,&tq);
         ~^     ~~~
foo.c:8:13: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'unsigned char (*)[10001]' [-Wformat=]
  scanf("%s %s",&tp,&tq);
            ~^      ~~~
foo.c:10:18: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
  int lenp=strlen(tp),lenq=strlen(tq);
                  ^~
In file included from foo.c:2:0:
/usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *'
 extern size_t strlen (const char *__s)
               ^~~~~~
foo.c:10:34: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
  int lenp=strlen(tp),lenq=strlen(tq);
                                  ^~
In file included from foo.c:2:0:
/usr/include/string.h:384:15: note: expected 'const char *' but argument is of type 'unsigned char *'
 extern size_t strlen (const char *__s)
               ^~~~~~
foo.c:8:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%s %s",&tp,&tq);
  ^~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 0ms 284.0 KiB
#2 Wrong Answer Read 1500619716404381..., expect 1500619716406944.... 1ms 256.0 KiB
#3 Wrong Answer Read 4740979408460849..., expect 4740979667305293.... 1ms 256.0 KiB
#4 Wrong Answer Read 6052064876433481..., expect 6052064902061926.... 81ms 356.0 KiB

信息

递交者
类型
递交
题目
P1040 高精度乘法
语言
C
递交时间
2021-10-04 13:57:03
评测时间
2021-10-04 13:57:03
评测机
分数
25
总耗时
84ms
峰值内存
356.0 KiB