/ Vijos /

记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:7:6: error: array size missing in 'sum'
  int sum[];
      ^~~
/in/foo.c:8:6: error: array size missing in 'Name'
  int Name[];
      ^~~~
/in/foo.c:10:6: error: 'i' undeclared (first use in this function)
  for(i=0,i<N,i++)
      ^
/in/foo.c:10:6: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:10:9: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  for(i=0,i<N,i++)
         ^
/in/foo.c:10:13: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  for(i=0,i<N,i++)
             ^
/in/foo.c:10:17: error: expected ';' before ')' token
  for(i=0,i<N,i++)
                 ^
/in/foo.c:10:17: error: expected expression before ')' token
/in/foo.c:11:11: warning: format '%c' expects argument of type 'char *', but argument 2 has type 'int *' [-Wformat=]
  {scanf("%c",&name);
           ^
/in/foo.c:14:11: warning: format '%c' expects argument of type 'char *', but argument 2 has type 'int *' [-Wformat=]
   scanf("%c",&isvip);
           ^
/in/foo.c:15:11: warning: format '%c' expects argument of type 'char *', but argument 2 has type 'int *' [-Wformat=]
   scanf("%c",&iswest);
           ^
/in/foo.c:35:21: error: 'k' undeclared (first use in this function)
  printf("%c\n",Name[k]);
                     ^
/in/foo.c:8:6: warning: variable 'Name' set but not used [-Wunused-but-set-variable]
  int Name[];
      ^~~~
/in/foo.c:6:6: warning: unused variable 'sumBUD' [-Wunused-variable]
  int sumBUD,sumAll;
      ^~~~~~

信息

递交者
类型
递交
题目
P1001 谁拿了最多奖学金
语言
C
递交时间
2024-11-03 22:21:35
评测时间
2024-11-03 22:21:35
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes