运行 ID 作者 题号 测评结果 分数 时间 内存 语言 代码长度 提交时间
402390 lalala 1048 - 猜拳 编译错误 0 0 MS 0 KB C 9434 2年前
暂时无法获取本题测试点详情。

Main.c: In function ‘Entry’:
Main.c:227:5: warning: implicit declaration of function ‘gets’; did you mean ‘fgets’? [-Wimplicit-function-declaration]
227 | gets(ch1);
| ^~~~
| fgets
Main.c: In function ‘inputM’:
Main.c:298:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
298 | printf("%4d%10s%8d
",men[n].Mid,men[n].Mname,men[n].Score);
| ~~^ ~~~~~~~~~~
| | |
| int long int
| %4ld
Main.c:298:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat=]
298 | printf("%4d%10s%8d
",men[n].Mid,men[n].Mname,men[n].Score);
| ~~^ ~~~~~~~~~~~~
| | |
| int long int
| %8ld
Main.c: In function ‘changeM’:
Main.c:320:15: warning: format ‘%lld’ expects argument of type ‘long long int *’, but argument 2 has type ‘long int *’ [-Wformat=]
320 | scanf("%lld",&men[x-1].Score);
| ~~~^ ~~~~~~~~~~~~~~~
| | |
| | long int *
| long long int *
| %ld
Main.c: In function ‘outputB’:
Main.c:378:5: error: expected declaration or statement at end of input
378 | return 0;
| ^~~~~~