记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:4:11: error: 'n' was not declared in this scope
  if(prime(n))
           ^
foo.cc:4:5: error: 'prime' was not declared in this scope
  if(prime(n))
     ^~~~~
foo.cc:4:5: note: suggested alternative: 'stime'
  if(prime(n))
     ^~~~~
     stime
foo.cc:8:22: error: 'n' was not declared in this scope
  for(int i=2;i<=sqrt(n);i++)
                      ^
foo.cc:8:17: error: 'sqrt' was not declared in this scope
  for(int i=2;i<=sqrt(n);i++)
                 ^~~~
foo.cc:8:17: note: suggested alternative: 'qsort'
  for(int i=2;i<=sqrt(n);i++)
                 ^~~~
                 qsort
foo.cc:10:16: error: 'prime' was not declared in this scope
   if(n%i==0 && prime(i) && prime(n/i))
                ^~~~~
foo.cc:10: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:34:44
评测时间
2021-07-31 10:34:44
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes