记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:12:4: error: stray '\357' in program
  if(delter=0)
    ^
/in/foo.c:12:5: error: stray '\274' in program
  if(delter=0)
     ^
/in/foo.c:12:6: error: stray '\210' in program
  if(delter=0)
      ^
/in/foo.c:12:7: error: expected '(' before 'delter'
  if(delter=0)
       ^~~~~~
/in/foo.c:12:15: error: stray '\357' in program
  if(delter=0)
               ^
/in/foo.c:12:16: error: stray '\274' in program
  if(delter=0)
                ^
/in/foo.c:12:17: error: stray '\211' in program
  if(delter=0)
                 ^
/in/foo.c:19:7: error: stray '\357' in program
    x1=(-b+sqrt(delter)/2*a);
       ^
/in/foo.c:19:8: error: stray '\274' in program
    x1=(-b+sqrt(delter)/2*a);
        ^
/in/foo.c:19:9: error: stray '\210' in program
    x1=(-b+sqrt(delter)/2*a);
         ^
/in/foo.c:20:7: error: stray '\357' in program
    x2=(-b-sqrt(delter)/2*a);
       ^
/in/foo.c:20:8: error: stray '\274' in program
    x2=(-b-sqrt(delter)/2*a);
        ^
/in/foo.c:20:9: error: stray '\210' in program
    x2=(-b-sqrt(delter)/2*a);
         ^
/in/foo.c:20:29: error: expected ';' before ')' token
    x2=(-b-sqrt(delter)/2*a);
                             ^
/in/foo.c:20:29: error: expected statement before ')' token
/in/foo.c:5:24: warning: variable 'x' 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:22:4: error: expected identifier or '(' before 'else'
   }else
    ^~~~
/in/foo.c:29:2: error: expected identifier or '(' before 'return'
  return 0;
  ^~~~~~
/in/foo.c:30:1: error: expected identifier or '(' before '}' token
 }
 ^

信息

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