Compile Error
foo.cc: In function 'int main()':
foo.cc:9:21: error: 'x' was not declared in this scope
scanf("%d",&x);
^
foo.cc:6:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&m);
~~~~~^~~~~~~~~~~~~~
foo.cc:7:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i=1;i<=n;i++) scanf("%d",&a[i]);
~~~~~^~~~~~~~~~~~
信息
- 递交者
- 类型
- 自测
- 题目
- P1291 苹果摘陶陶
- 语言
- C++
- 递交时间
- 2020-11-02 23:43:44
- 评测时间
- 2020-11-02 23:43:44
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes