Runtime Error
/in/foo.c: In function 'main': /in/foo.c:13:11: warning: passing argument 1 of 'fun' makes pointer from integer without a cast [-Wint-conversion] sum=fun(a[n], n); ^ /in/foo.c:3:5: note: expected 'int *' but argument is of type 'int' int fun(int a[],int n); ^~~ /in/foo.c:7:19: warning: unused variable 'num' [-Wunused-variable] int a[1000],n,num,i; ^~~
信息
- 递交者
- 类型
- 递交
- 比赛
- 2020年互联网创新创业科技节程序设计大赛
- 语言
- C
- 递交时间
- 2020-12-09 15:19:37
- 评测时间
- 2020-12-09 15:19:37
- 评测机
- 分数
- 0
- 总耗时
- 2ms
- 峰值内存
- 208.0 KiB