/ Vijos /

记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:6:8: error: expected expression before '%' token
  scanf(%f,&l);
        ^
/in/foo.c:7:8: error: expected expression before '%' token
  scanf(%f%f,&vb,&vc);
        ^
/in/foo.c:8:18: error: stray '\357' in program
  if((va>vb&&vb>vc)||(vc>vb&&vb>va))
                  ^
/in/foo.c:8:19: error: stray '\274' in program
  if((va>vb&&vb>vc)||(vc>vb&&vb>va))
                   ^
/in/foo.c:8:20: error: stray '\211' in program
  if((va>vb&&vb>vc)||(vc>vb&&vb>va))
                    ^
/in/foo.c:8:23: error: stray '\357' in program
  if((va>vb&&vb>vc)||(vc>vb&&vb>va))
                       ^
/in/foo.c:8:24: error: stray '\274' in program
  if((va>vb&&vb>vc)||(vc>vb&&vb>va))
                        ^
/in/foo.c:8:25: error: stray '\210' in program
  if((va>vb&&vb>vc)||(vc>vb&&vb>va))
                         ^
/in/foo.c:8:11: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if((va>vb&&vb>vc)||(vc>vb&&vb>va))
      ~~~~~^~~~~~~
/in/foo.c:9:8: error: invalid suffix "vb" on integer constant
     va=2vb-vc;
        ^~~
/in/foo.c:8:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if((va>vb&&vb>vc)||(vc>vb&&vb>va))
  ^~
/in/foo.c:10:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     if(va>Vc)
     ^~
/in/foo.c:10:11: error: 'Vc' undeclared (first use in this function)
     if(va>Vc)
           ^~
/in/foo.c:10:11: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:14:3: error: 'Va' undeclared (first use in this function)
   Va=2vc-vb;
   ^~
/in/foo.c:14:6: error: invalid suffix "vc" on integer constant
   Va=2vc-vb;
      ^~~
/in/foo.c:18:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if((vb>va&&va>vc)||(vc>va&&va>vb))
  ^~
/in/foo.c:20:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   if(vb>vc)
   ^~
/in/foo.c:24:9: error: expected expression before '%' token
  printf(%f%f%f\n%f,sa,sb,sc,t);
         ^
/in/foo.c:24:15: error: stray '\' in program
  printf(%f%f%f\n%f,sa,sb,sc,t);
               ^
/in/foo.c:5:30: warning: unused variable 'l' [-Wunused-variable]
     double va,vb,vc,sa,sb,sc,l,t;
                              ^
/in/foo.c:5:27: warning: variable 'sc' set but not used [-Wunused-but-set-variable]
     double va,vb,vc,sa,sb,sc,l,t;
                           ^~
/in/foo.c:5:24: warning: variable 'sb' set but not used [-Wunused-but-set-variable]
     double va,vb,vc,sa,sb,sc,l,t;
                        ^~
/in/foo.c:5:21: warning: variable 'sa' set but not used [-Wunused-but-set-variable]
     double va,vb,vc,sa,sb,sc,l,t;
                     ^~

信息

递交者
类型
递交
题目
P1072 新年趣事之债务
语言
C
递交时间
2023-11-21 01:13:25
评测时间
2023-11-21 01:13:25
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes