/ OIer TK /

记录详情

Accepted

foo.cc: In function 'void do1(int, std::map<int, int>&)':
foo.cc:20:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   20 |     for(i=0;i<v.size()&&v[i]<=x;++i)
      |             ~^~~~~~~~~
foo.cc:26:13: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
   26 |             else
      |             ^~~~
foo.cc:28:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
   28 |                 return ;
      |                 ^~~~~~
foo.cc:35:13: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
   35 |             else
      |             ^~~~
foo.cc:37:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
   37 |                 x/=v[i];
      |                 ^
foo.cc: In function 'int main()':
foo.cc:80:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   80 |     for(it=q.begin();it!=q.end();++it)
      |     ^~~
foo.cc:85:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   85 |         cout<<t<<endl;
      |         ^~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 6ms 796.0 KiB
#2 Accepted 6ms 796.0 KiB
#3 Accepted 6ms 796.0 KiB
#4 Accepted 8ms 872.0 KiB
#5 Accepted 37ms 1.102 MiB

信息

递交者
类型
递交
题目
P1135 组合数
语言
C++
递交时间
2023-06-04 20:13:00
评测时间
2023-06-04 20:13:00
评测机
分数
100
总耗时
66ms
峰值内存
1.102 MiB