/ Vijos /

记录详情

Runtime Error

foo.c: In function 'main':
foo.c:8:2: warning: 'gets' is deprecated [-Wdeprecated-declarations]
  gets(tp);
  ^~~~
In file included from /usr/include/stdio.h:862:0,
                 from foo.c:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:232:1: note: declared here
 gets (char *__str)
 ^~~~
foo.c:8:7: warning: pointer targets in passing argument 1 of 'gets' differ in signedness [-Wpointer-sign]
  gets(tp);
       ^~
In file included from /usr/include/stdio.h:862:0,
                 from foo.c:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:232:1: note: expected 'char *' but argument is of type 'unsigned char *'
 gets (char *__str)
 ^~~~
foo.c:9:2: warning: 'gets' is deprecated [-Wdeprecated-declarations]
  gets(tq);
  ^~~~
In file included from /usr/include/stdio.h:862:0,
                 from foo.c:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:232:1: note: declared here
 gets (char *__str)
 ^~~~
foo.c:9:7: warning: pointer targets in passing argument 1 of 'gets' differ in signedness [-Wpointer-sign]
  gets(tq);
       ^~
In file included from /usr/include/stdio.h:862:0,
                 from foo.c:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:232:1: note: expected 'char *' but argument is of type 'unsigned char *'
 gets (char *__str)
 ^~~~
foo.c:11: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:11: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 'gets', declared with attribute warn_unused_result [-Wunused-result]
  gets(tp);
  ^~~~~~~~
foo.c:9:2: warning: ignoring return value of 'gets', declared with attribute warn_unused_result [-Wunused-result]
  gets(tq);
  ^~~~~~~~
/tmp/ccu6Me8E.o: In function `main':
foo.c:(.text.startup+0x4f): warning: the `gets' function is dangerous and should not be used.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 1605851302240574..., expect 1605851301319192260. 0ms 256.0 KiB
#2 Wrong Answer Read 1500619716404381..., expect 1500619716406944.... 0ms 256.0 KiB
#3 Wrong Answer Read 4740979408460849..., expect 4740979667305293.... 1ms 256.0 KiB
#4 Runtime Error Aborted 0ms 324.0 KiB

信息

递交者
类型
递交
题目
P1040 高精度乘法
语言
C
递交时间
2021-10-04 14:06:50
评测时间
2021-10-04 14:06:50
评测机
分数
0
总耗时
4ms
峰值内存
324.0 KiB