Compile Error

foo.cc: In function ‘int main()’:
foo.cc:20:44: warning: comparison of integer expressions of different signedness: ‘long long int’ and ‘std::vector<long long int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   20 |                 for(int j=0;prime[j]>n/i&&j<prime.size();j++)
      |                                           ~^~~~~~~~~~~~~
foo.cc:23:69: error: ‘p’ was not declared in this scope
   23 |                         max_i[i]=max(max_i[i*prime[j]],max(max_i[i],p));
      |                                                                     ^

信息

递交者
类型
递交
题目
P2620 B-smooth数5级2 2024.4
语言
C++
递交时间
2024-05-10 12:15:25
评测时间
2024-05-10 12:15:25
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes