记录详情

Compile Error

foo.cc: In function ‘int main()’:
foo.cc:7:20: error: expected primary-expression before ‘%’ token
    7 |         scanf("%d",%n);
      |                    ^
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:06
评测时间
2024-05-03 13:50:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes