/ Vijos /

记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:13:11: warning: format '%c' expects argument of type 'char *', but argument 2 has type 'int *' [-Wformat=]
  {scanf("%c",&name);
           ^
/in/foo.c:16:11: warning: format '%c' expects argument of type 'char *', but argument 2 has type 'int *' [-Wformat=]
   scanf("%c",&isvip);
           ^
/in/foo.c:17:11: warning: format '%c' expects argument of type 'char *', but argument 2 has type 'int *' [-Wformat=]
   scanf("%c",&iswest);
           ^
/in/foo.c:37:21: error: 'k' undeclared (first use in this function)
  printf("%c\n",Name[k]);
                     ^
/in/foo.c:37:21: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:11:6: warning: variable 'Name' set but not used [-Wunused-but-set-variable]
  int Name[N];
      ^~~~
/in/foo.c:6:6: warning: unused variable 'sumBUD' [-Wunused-variable]
  int sumBUD,sumAll;
      ^~~~~~

信息

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