记录详情

Wrong Answer

foo.cc: In function 'void prime(int)':
foo.cc:8:23: 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(); i++)
      |                     ~~^~~~~~~~~~
foo.cc:12:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   12 |     for (int i = 0; i < a.size(); i++)
      |                     ~~^~~~~~~~~~
foo.cc:14:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   14 |         for (int j = i + 1; j < a.size(); j++)
      |                             ~~^~~~~~~~~~
foo.cc:23:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   23 |     for (int i = 0; i < a.size(); i++)
      |                     ~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer User output longer than standard answer. 2ms 384.0 KiB
#2 Wrong Answer User output longer than standard answer. 2ms 384.0 KiB
#3 Wrong Answer User output longer than standard answer. 2ms 384.0 KiB
#4 Wrong Answer User output longer than standard answer. 78ms 512.0 KiB
#5 Wrong Answer User output longer than standard answer. 861ms 768.0 KiB

信息

递交者
类型
递交
题目
P1040 OO10-1 基于vector的素数筛选法
比赛
2022春 面向对象程序设计方法的上机作业
语言
C++
递交时间
2022-04-28 15:09:16
评测时间
2022-04-28 15:09:16
评测机
分数
0
总耗时
947ms
峰值内存
768.0 KiB