/ Vijos /

记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:24:52: error: '(struct student *)&students' is a pointer; did you mean to use '->'?
   24 |                 if (students[i].qimo>80 && students.lunwen >= 1){
      |                                                    ^
      |                                                    ->
/in/foo.c:37:37: error: 'jiangjin' undeclared (first use in this function); did you mean 'totaljiangjin'?
   37 |                         students[i],jiangjin+=850;
      |                                     ^~~~~~~~
      |                                     totaljiangjin
/in/foo.c:37:37: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:37:36: warning: left-hand operand of comma expression has no effect [-Wunused-value]
   37 |                         students[i],jiangjin+=850;
      |                                    ^

信息

递交者
类型
递交
题目
P1001 谁拿了最多奖学金
语言
C
递交时间
2025-10-06 19:21:59
评测时间
2025-10-06 19:21:59
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes