Compile Error
/in/foo.c:2:27: error: expected ';', ',' or ')' before '&' token int max(int x,int k[],int &o){ ^ /in/foo.c: In function 'main': /in/foo.c:25:2: error: variable-sized object may not be initialized int c[n]={-1},oo; ^~~ /in/foo.c:25:12: warning: excess elements in array initializer int c[n]={-1},oo; ^ /in/foo.c:25:12: note: (near initialization for 'c') /in/foo.c:32:14: warning: implicit declaration of function 'max' [-Wimplicit-function-declaration] if(i%2)r2+=max(4,&b[0],oo); ^~~
信息
- 递交者
- 类型
- 递交
- 题目
- P1254 Ad-Advanced Selection
- 语言
- C
- 递交时间
- 2019-07-08 09:48:04
- 评测时间
- 2019-07-08 09:48:04
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes