/ Vijos /

记录详情

Compile Error

/in/foo.cc:6:12: error: flexible array member 'st::name' not at end of 'struct st'
  char name[];
            ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:15:89: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[]' [-Wformat=]
             scanf("%s %d %d %c %c %d\n",&q[i].name,&q[i].a,&q[i].b,q[i].s,q[i].w,&q[i].d);
                                                                                         ^
/in/foo.cc:15:89: warning: format '%c' expects argument of type 'char*', but argument 5 has type 'int' [-Wformat=]
/in/foo.cc:15:89: warning: format '%c' expects argument of type 'char*', but argument 6 has type 'int' [-Wformat=]

信息

递交者
类型
自测
题目
P1001 谁拿了最多奖学金
语言
C++
递交时间
2017-06-16 11:51:25
评测时间
2017-06-16 11:51:25
评测机
分数
0
总耗时
241ms
峰值内存
27.496 MiB