/ Vijos /

记录详情

Accepted

foo.cc: In function 'void change(std::vector<int>)':
foo.cc:355:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  355 |     for (int i = 0;i < p.size();i++) {
      |                    ~~^~~~~~~~~~
foo.cc:356:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  356 |         for (int j = i+1;j < p.size();j++) {
      |                          ~~^~~~~~~~~~
foo.cc: In function 'void add(std::vector<int>)':
foo.cc:365:17: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
  365 |     if (p.size()>=lim) return;
      |         ~~~~~~~~^~~~~
foo.cc:366:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  366 |     for (int i = 0;i < p.size();i++) {
      |                    ~~^~~~~~~~~~
foo.cc: In function 'void delt(std::vector<int>)':
foo.cc:407:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  407 |     for (int i = 0;i < p.size();i++) {
      |                    ~~^~~~~~~~~~
foo.cc:416:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  416 |         } else if (i==p.size()-1) {
      |                    ~^~~~~~~~~~~~
foo.cc: In function 'void bfs()':
foo.cc:437:23: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
  437 |         if (h.k.size()>lim) continue;
      |             ~~~~~~~~~~^~~~
foo.cc: In function 'int main()':
foo.cc:447:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  447 |     scanf("%d",&n);
      |     ~~~~~^~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 7ms 512.0 KiB
#6 Accepted 4ms 384.0 KiB
#7 Accepted 58ms 1.363 MiB
#8 Accepted 162ms 3.605 MiB
#9 Accepted 178ms 5.105 MiB
#10 Accepted 8ms 640.0 KiB

信息

递交者
类型
递交
题目
P1422 教主的难题
语言
C++
递交时间
2022-07-18 16:34:14
评测时间
2022-07-18 16:34:14
评测机
分数
100
总耗时
429ms
峰值内存
5.105 MiB