记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:7:13: error: lvalue required as left operand of assignment
  a*x*x+b*x+c=0;
             ^
/in/foo.c:13:4: error: stray '\357' in program
  if(delter=0)
    ^
/in/foo.c:13:5: error: stray '\274' in program
  if(delter=0)
     ^
/in/foo.c:13:6: error: stray '\210' in program
  if(delter=0)
      ^
/in/foo.c:13:7: error: expected '(' before 'delter'
  if(delter=0)
       ^~~~~~
/in/foo.c:13:15: error: stray '\357' in program
  if(delter=0)
               ^
/in/foo.c:13:16: error: stray '\274' in program
  if(delter=0)
                ^
/in/foo.c:13:17: error: stray '\211' in program
  if(delter=0)
                 ^
/in/foo.c:19:27: error: stray '\357' in program
    printf("%.2f\n%.2f",x1=(-b+sqrt(delter)/2*a),x2=(-b-sqrt(delter)/2*a));
                           ^
/in/foo.c:19:28: error: stray '\274' in program
    printf("%.2f\n%.2f",x1=(-b+sqrt(delter)/2*a),x2=(-b-sqrt(delter)/2*a));
                            ^
/in/foo.c:19:29: error: stray '\210' in program
    printf("%.2f\n%.2f",x1=(-b+sqrt(delter)/2*a),x2=(-b-sqrt(delter)/2*a));
                             ^
/in/foo.c:19:54: error: stray '\357' in program
    printf("%.2f\n%.2f",x1=(-b+sqrt(delter)/2*a),x2=(-b-sqrt(delter)/2*a));
                                                      ^
/in/foo.c:19:55: error: stray '\274' in program
    printf("%.2f\n%.2f",x1=(-b+sqrt(delter)/2*a),x2=(-b-sqrt(delter)/2*a));
                                                       ^
/in/foo.c:19:56: error: stray '\210' in program
    printf("%.2f\n%.2f",x1=(-b+sqrt(delter)/2*a),x2=(-b-sqrt(delter)/2*a));
                                                        ^
/in/foo.c:19:77: error: expected statement before ')' token
    printf("%.2f\n%.2f",x1=(-b+sqrt(delter)/2*a),x2=(-b-sqrt(delter)/2*a));
                                                                             ^
/in/foo.c:5:29: warning: unused variable 'x2' [-Wunused-variable]
     float a,b,c,delter,x,x1,x2;
                             ^~
/in/foo.c:5:17: warning: variable 'delter' set but not used [-Wunused-but-set-variable]
     float a,b,c,delter,x,x1,x2;
                 ^~~~~~
/in/foo.c: At top level:
/in/foo.c:20:4: error: expected identifier or '(' before 'else'
   }else
    ^~~~
/in/foo.c:25:2: error: expected identifier or '(' before 'return'
  return 0;
  ^~~~~~
/in/foo.c:26:1: error: expected identifier or '(' before '}' token
 }
 ^

信息

递交者
类型
自测
语言
C
递交时间
2024-12-23 15:28:01
评测时间
2024-12-23 15:28:01
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes