Compile Error
foo.cc: In function 'int main()':
foo.cc:13:13: error: conflicting declaration 'int a [10]'
int a[10] = { 0,0,0,0,0,0,0,0,0,0 };
^
foo.cc:10:9: note: previous declaration as 'int a'
int a, b, p;
^
foo.cc:14:13: error: conflicting declaration 'int b [10]'
int b[10] = { 2,2,2,2,2,2,2,2,2,2 };
^
foo.cc:10:12: note: previous declaration as 'int b'
int a, b, p;
^
foo.cc:23:9: warning: unused variable 'sum' [-Wunused-variable]
int sum = 0;
^~~
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 递交
- 题目
- P1031 快速幂取模
- 比赛
- 周末测试2
- 语言
- C++
- 递交时间
- 2021-09-24 21:38:35
- 评测时间
- 2021-09-24 21:38:35
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes