记录详情

Wrong Answer

/in/foo.c: In function 'main':
/in/foo.c:8:11: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]
  {scanf("%s %d %d %d %d %d\n",name,&a,&b,&c,&d,&e);
           ^
/in/foo.c:11:12: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]
  {printf("%s %d %d %d %d %d\n",name,&a,&b,&c,&d,&e);
            ^
/in/foo.c:11:15: warning: format '%d' expects argument of type 'int', but argument 3 has type 'int *' [-Wformat=]
  {printf("%s %d %d %d %d %d\n",name,&a,&b,&c,&d,&e);
               ^
/in/foo.c:11:18: warning: format '%d' expects argument of type 'int', but argument 4 has type 'int *' [-Wformat=]
  {printf("%s %d %d %d %d %d\n",name,&a,&b,&c,&d,&e);
                  ^
/in/foo.c:11:21: warning: format '%d' expects argument of type 'int', but argument 5 has type 'int *' [-Wformat=]
  {printf("%s %d %d %d %d %d\n",name,&a,&b,&c,&d,&e);
                     ^
/in/foo.c:11:24: warning: format '%d' expects argument of type 'int', but argument 6 has type 'int *' [-Wformat=]
  {printf("%s %d %d %d %d %d\n",name,&a,&b,&c,&d,&e);
                        ^
/in/foo.c:11:27: warning: format '%d' expects argument of type 'int', but argument 7 has type 'int *' [-Wformat=]
  {printf("%s %d %d %d %d %d\n",name,&a,&b,&c,&d,&e);
                           ^
/in/foo.c:8:3: warning: 'name' may be used uninitialized in this function [-Wmaybe-uninitialized]
  {scanf("%s %d %d %d %d %d\n",name,&a,&b,&c,&d,&e);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 212.0 KiB

信息

递交者
类型
自测
语言
C
递交时间
2024-12-22 10:45:53
评测时间
2024-12-22 10:45:53
评测机
分数
0
总耗时
1ms
峰值内存
212.0 KiB