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)提供评测服务