/ Vijos /

记录详情

Compile Error

foo.c: In function 'main':
foo.c:6:15: error: expected expression before '%' token
    6 |         scanf(%f,&l);
      |               ^
foo.c:7:15: error: expected expression before '%' token
    7 |         scanf(%f%f,&vb,&vc);
      |               ^
foo.c:8:23: error: 'vc\U0000ff09' undeclared (first use in this function)
    8 |         if((va>vb&&vb>vc)||(vc>vb&&vb>va))
      |                       ^~~~
foo.c:8:23: note: each undeclared identifier is reported only once for each function it appears in
foo.c:8:29: error: '\U0000ff08vc' undeclared (first use in this function)
    8 |         if((va>vb&&vb>vc)||(vc>vb&&vb>va))
      |                             ^~~~
foo.c:9:15: error: invalid suffix "vb" on integer constant
    9 |            va=2vb-vc;
      |               ^~~
foo.c:8:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    8 |         if((va>vb&&vb>vc)||(vc>vb&&vb>va))
      |         ^~
foo.c:10:12: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   10 |            if(va>Vc)
      |            ^~
foo.c:10:18: error: 'Vc' undeclared (first use in this function); did you mean 'vc'?
   10 |            if(va>Vc)
      |                  ^~
      |                  vc
foo.c:14:17: error: 'Va' undeclared (first use in this function); did you mean 'va'?
   14 |                 Va=2vc-vb;
      |                 ^~
      |                 va
foo.c:14:20: error: invalid suffix "vc" on integer constant
   14 |                 Va=2vc-vb;
      |                    ^~~
foo.c:18:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   18 |         if((vb>va&&va>vc)||(vc>va&&va>vb))
      |         ^~
foo.c:20:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   20 |                 if(vb>vc)
      |                 ^~
foo.c:24:16: error: expected expression before '%' token
   24 |         printf(%f%f%f\n%f,sa,sb,sc,t);
      |                ^
foo.c:24:22: error: stray '\' in program
   24 |         printf(%f%f%f\n%f,sa,sb,sc,t);
      |                      ^
foo.c:5:30: warning: unused variable 'l' [-Wunused-variable]
    5 |     double va,vb,vc,sa,sb,sc,l,t;
      |                              ^
foo.c:5:27: warning: variable 'sc' set but not used [-Wunused-but-set-variable]
    5 |     double va,vb,vc,sa,sb,sc,l,t;
      |                           ^~
foo.c:5:24: warning: variable 'sb' set but not used [-Wunused-but-set-variable]
    5 |     double va,vb,vc,sa,sb,sc,l,t;
      |                        ^~
foo.c:5:21: warning: variable 'sa' set but not used [-Wunused-but-set-variable]
    5 |     double va,vb,vc,sa,sb,sc,l,t;
      |                     ^~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

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