/ Vijos /

记录详情

Compile Error

foo.cc: In function 'bool check(int)':
foo.cc:22:19: error: 'sqrt' was not declared in this scope
  for (i = 2; i <= sqrt(sum); i++)
                   ^~~~
foo.cc:22:19: note: suggested alternative: 'qsort'
  for (i = 2; i <= sqrt(sum); i++)
                   ^~~~
                   qsort
foo.cc: In function 'int main()':
foo.cc:54:2: error: 'memset' was not declared in this scope
  memset(temp, 0, n);
  ^~~~~~
foo.cc:54:2: note: suggested alternative: 'wmemset'
  memset(temp, 0, n);
  ^~~~~~
  wmemset
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1128 选数
语言
C++
递交时间
2021-11-11 17:31:22
评测时间
2021-11-11 17:31:22
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes