/ Vijos /

记录详情

Compile Error

foo.cc: In function 'bool check(long int)':
foo.cc:8:35: error: 'returntrue' was not declared in this scope
    8 |         if (a[i+k-1]-a[i-1]==ans) returntrue;
      |                                   ^~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:20:12: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   20 |       scanf("%ld %ld",&n,&max);
      |       ~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc:24:16: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   24 |           scanf("%ld",&t);
      |           ~~~~~^~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1760 11月10日的欢乐
语言
C++
递交时间
2022-02-09 18:30:17
评测时间
2022-02-09 18:30:17
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes