Compile Error

foo.cc: In function 'int main()':
foo.cc:13:19: error: 'sprt' was not declared in this scope
   13 |   for (int i=2;i<=sprt(n);i++)
      |                   ^~~~
foo.cc:17:3: error: 'flag' was not declared in this scope
   17 |   flag=1;
      |   ^~~~
foo.cc:21:9: error: 'flag' was not declared in this scope
   21 |   if(1==flag)
      |         ^~~~
foo.cc:5:14: warning: unused variable 'f' [-Wunused-variable]
    5 |  long long n,f=0;
      |              ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1037 素数
语言
C++
递交时间
2021-12-11 09:39:23
评测时间
2021-12-11 09:39:23
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes