记录详情

Accepted

foo.cc: In function 'll get_value(char*)':
foo.cc:20:20: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
   20 |  for (int i = 0; i < strlen(s); i++)
      |                  ~~^~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:41:11: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[20]' [-Wformat=]
   41 |   scanf("%s", &a[i].s);
      |          ~^   ~~~~~~~
      |           |   |
      |           |   char (*)[20]
      |           char*
foo.cc:29:12: warning: unused variable 'k' [-Wunused-variable]
   29 |  int i, j, k;
      |            ^
foo.cc:37:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   37 |  scanf("%d %s", &n, str);
      |  ~~~~~^~~~~~~~~~~~~~~~~~
foo.cc:41:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   41 |   scanf("%s", &a[i].s);
      |   ~~~~~^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 3ms 512.0 KiB
#6 Accepted 2ms 384.0 KiB
#7 Accepted 3ms 384.0 KiB
#8 Accepted 3ms 384.0 KiB
#9 Accepted 2ms 384.0 KiB
#10 Accepted 3ms 384.0 KiB

信息

递交者
类型
递交
题目
P1340 整数小拼接 [2020年蓝桥杯A组第一场]
比赛
2022春季 荣誉练习赛2(2020蓝桥A组省赛重温)
语言
C++
递交时间
2022-03-26 19:18:47
评测时间
2022-03-26 19:18:47
评测机
分数
100
总耗时
28ms
峰值内存
512.0 KiB