记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:88:12: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wformat=]
   88 |   printf("%d ",v.size());
      |           ~^   ~~~~~~~~
      |            |         |
      |            int       std::vector<int>::size_type {aka long unsigned int}
      |           %ld
foo.cc:89:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   89 |   for(i=0;i<v.size();i++){
      |           ~^~~~~~~~~
foo.cc:64:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   64 |  scanf("%d",&T);
      |  ~~~~~^~~~~~~~~
foo.cc:68:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   68 |    scanf("%s",ch);
      |    ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 92ms 384.0 KiB
#2 Accepted 94ms 384.0 KiB
#3 Accepted 117ms 512.0 KiB
#4 Accepted 94ms 384.0 KiB
#5 Accepted 109ms 384.0 KiB
#6 Accepted 121ms 384.0 KiB
#7 Accepted 125ms 512.0 KiB
#8 Accepted 77ms 384.0 KiB

信息

递交者
类型
递交
语言
C++
递交时间
2021-12-08 16:26:22
评测时间
2021-12-08 16:26:22
评测机
分数
80
总耗时
833ms
峰值内存
512.0 KiB