记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:15:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   15 |         for (int j = 1; j < a.size() && a[j] * i < N; j++) {
      |                         ~~^~~~~~~~~~
foo.cc:21:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   21 |     for (int i = 1; i <= a.size() && 2 * a[i] <= n; i++) {
      |                     ~~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 9ms 1.996 MiB
#2 Accepted 9ms 1.871 MiB
#3 Accepted 9ms 1.871 MiB
#4 Accepted 9ms 1.996 MiB
#5 Accepted 9ms 1.871 MiB

信息

递交者
类型
递交
题目
A3-4 素数专题:验证哥德巴赫猜想
比赛
2022暑期青少年社团(入门赛)
语言
C++
递交时间
2022-07-28 21:17:58
评测时间
2022-07-28 21:17:58
评测机
分数
100
总耗时
48ms
峰值内存
1.996 MiB