记录详情

Accepted

foo.cc: In function 'void dgmult(std::vector<int>&, int)':
foo.cc:6:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    6 |     for(int i=0;i<a.size();i++)
      |                 ~^~~~~~~~~
foo.cc:6:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    6 |     for(int i=0;i<a.size();i++)
      |     ^~~
foo.cc:8:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
    8 |  for(int i=0;i<a.size()-1;i++) {
      |  ^~~
foo.cc:8:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    8 |  for(int i=0;i<a.size()-1;i++) {
      |              ~^~~~~~~~~~~
foo.cc: In function 'std::vector<int> Add(std::vector<int>&, std::vector<int>&)':
foo.cc:21:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   21 |  for(int i=0;i<a.size()||i<b.size();i++) {
      |              ~^~~~~~~~~
foo.cc:21:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   21 |  for(int i=0;i<a.size()||i<b.size();i++) {
      |                          ~^~~~~~~~~
foo.cc:22:7: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   22 |   if(i<a.size())
      |      ~^~~~~~~~~
foo.cc:24:7: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   24 |   if(i<b.size())
      |      ~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 1ms 384.0 KiB
#5 Accepted 5ms 384.0 KiB

信息

递交者
类型
递交
比赛
2022暑期青少年社团(训练赛)
语言
C++
递交时间
2022-08-07 19:25:35
评测时间
2022-08-07 19:25:35
评测机
分数
100
总耗时
15ms
峰值内存
384.0 KiB