记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:40:16: error: 'ans' was not declared in this scope; did you mean 'abs'?
   40 |    printf("%d",ans);
      |                ^~~
      |                abs
foo.cc:32:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   32 |  scanf("%d",&n);
      |  ~~~~~^~~~~~~~~
foo.cc:34:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   34 |   scanf("%d",&a[i]);
      |   ~~~~~^~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1355 4C Find Missing X
语言
C++
递交时间
2022-04-23 12:17:51
评测时间
2022-04-23 12:17:51
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes