Compile Error
/in/foo.cc: In function 'int main()':
/in/foo.cc:2:12: error: expected ']' before ';' token
#define N 0;
^
/in/foo.cc:7:8: note: in expansion of macro 'N'
int a[N];
^
/in/foo.cc:7:9: error: expected primary-expression before ']' token
int a[N];
^
/in/foo.cc:11:15: error: 'a' was not declared in this scope
scanf("%d",&a[i]);
^
/in/foo.cc:13:6: error: 'a' was not declared in this scope
max=a[0];
^
信息
- 递交者
- 类型
- 递交
- 题目
- P1060 数组元素最大值
- 语言
- C++
- 递交时间
- 2024-04-26 16:03:43
- 评测时间
- 2024-04-26 16:03:43
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes