记录详情

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 88ms 384.0 KiB
#2 Accepted 95ms 512.0 KiB
#3 Accepted 133ms 512.0 KiB
#4 Accepted 116ms 512.0 KiB
#5 Accepted 112ms 384.0 KiB
#6 Accepted 99ms 384.0 KiB
#7 Accepted 83ms 384.0 KiB
#8 Accepted 78ms 384.0 KiB

信息

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