记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:13: error: expected primary-expression before '%' token
  scanf("%d",%n);
             ^
/in/foo.cc:15:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         while(flag<Prime.size()&&i*Prime[flag]<=n)
               ~~~~^~~~~~~~~~~~~
/in/foo.cc:23:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0;i<v.size();i++)
                 ~^~~~~~~~~

信息

递交者
类型
递交
题目
P1336 OO10-1 基于vector的素数筛选法
语言
C++
递交时间
2024-05-03 13:50:09
评测时间
2024-05-03 13:50:09
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes