记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:11:17: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'int*' [-Wformat=]
   11 |         scanf("%s",a[b[j]]);
      |                ~^  ~~~~~~~
      |                 |        |
      |                 char*    int*
      |                %d
foo.cc:14:18: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'int*' [-Wformat=]
   14 |         printf("%s\n",a[j]);
      |                 ~^    ~~~~
      |                  |       |
      |                  char*   int*
      |                 %n
foo.cc:5:15: warning: unused variable 'k' [-Wunused-variable]
    5 |     int i=0,j,k;
      |               ^
foo.cc:8:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    8 |         scanf("%d",&b[i++]);
      |         ~~~~~^~~~~~~~~~~~~~
foo.cc:11:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   11 |         scanf("%s",a[b[j]]);
      |         ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 5ms 1.5 MiB
#2 Accepted 7ms 1.625 MiB
#3 Accepted 3ms 1.625 MiB
#4 Accepted 5ms 1.625 MiB
#5 Accepted 5ms 1.625 MiB
#6 Accepted 5ms 1.625 MiB
#7 Accepted 2ms 1.625 MiB
#8 Accepted 6ms 1.625 MiB
#9 Accepted 2ms 1.625 MiB
#10 Accepted 2ms 1.625 MiB

信息

递交者
类型
递交
题目
P1101 婚礼上的小杉
语言
C++
递交时间
2022-08-02 15:33:33
评测时间
2022-08-02 15:33:33
评测机
分数
100
总耗时
47ms
峰值内存
1.625 MiB