/ Vijos /

记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:19:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
  scanf("%d",&s.N);
  ^~~~~
/in/foo.c:19:15: error: '(S *)&s' is a pointer; did you mean to use '->'?
  scanf("%d",&s.N);
               ^
               ->
/in/foo.c:20:12: error: 'N' undeclared (first use in this function)
  for(i=0;i<N;i++)
            ^
/in/foo.c:20:12: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:22:17: error: stray '\357' in program
  for(i=0;i<N;i++)
                 ^
/in/foo.c:22:18: error: stray '\274' in program
  for(i=0;i<N;i++)
                  ^
/in/foo.c:22:19: error: stray '\211' in program
  for(i=0;i<N;i++)
                   ^
/in/foo.c:23:3: error: expected ')' before '{' token
   {
   ^
/in/foo.c:48:10: warning: unknown escape sequence: '\d'
   printf("%s\n%d\n%\d",name1[10],sum1,sum2);
          ^~~~~~~~~~~~~
/in/foo.c:53:1: error: expected expression before '}' token
 }
 ^
/in/foo.c:17:19: warning: unused variable 'sum2' [-Wunused-variable]
  int sum=0,sum1=0,sum2=0;
                   ^~~~
/in/foo.c:17:12: warning: unused variable 'sum1' [-Wunused-variable]
  int sum=0,sum1=0,sum2=0;
            ^~~~
/in/foo.c:17:6: warning: unused variable 'sum' [-Wunused-variable]
  int sum=0,sum1=0,sum2=0;
      ^~~
/in/foo.c:16:18: warning: unused variable 'j' [-Wunused-variable]
  int i,a[50]={0},j=1;
                  ^
/in/foo.c:16:8: warning: unused variable 'a' [-Wunused-variable]
  int i,a[50]={0},j=1;
        ^

信息

递交者
类型
递交
题目
P1001 谁拿了最多奖学金
语言
C
递交时间
2020-04-12 15:47:31
评测时间
2020-04-12 15:47:31
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes