记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:6:5: error: 'prime' was not declared in this scope
  if(prime(n))
     ^~~~~
foo.cc:6:5: note: suggested alternative: 'stime'
  if(prime(n))
     ^~~~~
     stime
foo.cc:10:17: error: 'sqrt' was not declared in this scope
  for(int i=2;i<=sqrt(n);i++)
                 ^~~~
foo.cc:10:17: note: suggested alternative: 'qsort'
  for(int i=2;i<=sqrt(n);i++)
                 ^~~~
                 qsort
foo.cc:12:16: error: 'prime' was not declared in this scope
   if(n%i==0 && prime(i) && prime(n/i))
                ^~~~~
foo.cc:12:16: note: suggested alternative: 'stime'
   if(n%i==0 && prime(i) && prime(n/i))
                ^~~~~
                stime
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1245 A Almost Prime
语言
C++
递交时间
2021-07-31 10:35:13
评测时间
2021-07-31 10:35:13
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes