记录详情

Compile Error

foo.cc: In function ‘bool isPrime(long long int)’:
foo.cc:15:25: error: ‘sqrt’ was not declared in this scope
   15 |         long long tmp = sqrt(num);
      |                         ^~~~
foo.cc: In function ‘int main()’:
foo.cc:32:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   32 |         for(int i = 0; i < v.size(); i++)
      |                        ~~^~~~~~~~~~

信息

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