Accepted
foo.cc: In function ‘int main()’: foo.cc:15:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 15 | while(flag<Prime.size()&&i*Prime[flag]<=n) | ~~~~^~~~~~~~~~~~~ foo.cc:23:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<bool>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 23 | for(int i=0;i<v.size();i++) | ~^~~~~~~~~
信息
- 递交者
- 类型
- 递交
- 题目
- P1336 OO10-1 基于vector的素数筛选法
- 语言
- C++
- 递交时间
- 2024-05-03 13:50:24
- 评测时间
- 2024-05-03 13:50:24
- 评测机
- 分数
- 100
- 总耗时
- 18ms
- 峰值内存
- 536.0 KiB