如何对待Warning错误
  • 板块学术版
  • 楼主__newbie__
  • 当前回复4
  • 已保存回复4
  • 发布时间2022/10/12 14:55
  • 上次更新2023/10/27 07:48:11
查看原帖
如何对待Warning错误
614884
__newbie__楼主2022/10/12 14:55

应该怎么对待这样的警告?

foo.cc: In function 'int main()':
foo.cc:30:23: warning: comparison of integer expressions of different signedness: 'std::priority_queue<int, std::vector<int>, std::greater<int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
   30 |       while (q.size() >= v) {
2022/10/12 14:55
加载中...