欢迎24级新生
运行 ID 作者 题号 测评结果 分数 时间 内存 语言 代码长度 提交时间
15309 20200612207赵艺 1400 - A的数量 编译错误 0 0 MS 0 KB C 686 2年前
暂时无法获取本题测试点详情。

Main.c:4:46: error: expected ';', ',' or ')' before '&' token
4 | int findA(char s[], int left, int right, int &sum) {
| ^
Main.c: In function 'main':
Main.c:40:2: warning: implicit declaration of function 'findA' [-Wimplicit-function-declaration]
40 | findA(s, 0, i, sum);
| ^~~~~
Main.c:35:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
35 | scanf("%c", &s[i]);
| ^~~~~~~~~~~~~~~~~~