Compile Error
/in/foo.cc: In function 'int main()': /in/foo.cc:13:10: warning: unused variable 'arr' [-Wunused-variable] int *arr=(int *)malloc(sizeof(int)*1000000); ^~~ /in/foo.cc:17:7: warning: unused variable 'arr' [-Wunused-variable] int *arr = (int *)malloc(sizeof(int)*100); ^~~ /in/foo.cc:21:8: error: 'arr' was not declared in this scope cin>>arr[i]; ^~~ /in/foo.cc:22:7: error: 'arr' was not declared in this scope sort(arr,arr+n); ^~~
信息
- 递交者
- 类型
- 递交
- 题目
- P1917 艾酱最喜欢的数字
- 语言
- C++
- 递交时间
- 2019-03-17 01:18:40
- 评测时间
- 2019-03-17 01:18:40
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes