记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:29:10: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[150]' [-Wformat=]
   29 |  scanf("%s%s",&s1,&s2);
      |         ~^    ~~~
      |          |    |
      |          |    char (*)[150]
      |          char*
foo.cc:29:12: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'char (*)[150]' [-Wformat=]
   29 |  scanf("%s%s",&s1,&s2);
      |           ~^      ~~~
      |            |      |
      |            char*  char (*)[150]
foo.cc:29:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   29 |  scanf("%s%s",&s1,&s2);
      |  ~~~~~^~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 256.0 KiB
#2 Accepted 2ms 256.0 KiB
#3 Accepted 2ms 256.0 KiB
#4 Accepted 2ms 256.0 KiB
#5 Accepted 2ms 256.0 KiB

信息

递交者
类型
递交
题目
P1385 Problem D. strcmp
比赛
2022年暑期算法队集训赛
语言
C++
递交时间
2022-07-08 10:34:38
评测时间
2022-07-08 10:34:38
评测机
分数
100
总耗时
12ms
峰值内存
256.0 KiB