运行 ID 作者 题号 测评结果 分数 时间 内存 语言 代码长度 提交时间
420260 wyy_1 1049 - 抢红包 编译错误 0 0 MS 0 KB C 635 2年前
暂时无法获取本题测试点详情。

Main.c: In function ‘main’:
Main.c:21:5: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
21 | scanf(%d",&n);
| ^~~~~
Main.c:21:5: warning: incompatible implicit declaration of built-in function ‘scanf’
Main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | int countt1(int a[],int n){
Main.c:21:11: error: expected expression before ‘%’ token
21 | scanf(%d",&n);
| ^
Main.c:21:13: warning: missing terminating " character
21 | scanf(%d",&n);
| ^
Main.c:21:13: error: missing terminating " character
21 | scanf(%d",&n);
| ^~~~~~
Main.c:34:14: error: expected ‘;’ before ‘}’ token
34 | return 0;
| ^
| ;
35 | }
| ~
Main.c:20:18: warning: unused variable ‘count’ [-Wunused-variable]
20 | int n,a[100],count=0;
| ^~~~~
Main.c:20:11: warning: unused variable ‘a’ [-Wunused-variable]
20 | int n,a[100],count=0;
| ^
Main.c:20:9: warning: unused variable ‘n’ [-Wunused-variable]
20 | int n,a[100],count=0;
| ^