记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:6:33: error: 'c\U0000ff09\U0000ff1b' undeclared (first use in this function)
    6 |         scanf("%f,%f,%f",&a,&b,&c);
      |                                 ^~~~~
/in/foo.c:6:33: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:6:38: error: expected ')' before 'if'
    6 |         scanf("%f,%f,%f",&a,&b,&c);
      |              ~                       ^
      |                                      )
    7 | 
    8 |         if(a+b>c&&a+c>b&&b+c>a)
      |         ~~                            
/in/foo.c:10:41: error: expected ';' before '}' token
   10 |                   printf("%.2f\n",周长);
      |                                         ^
      |                                         ;
   11 |         }else{
      |         ~                                
/in/foo.c:5:15: warning: unused variable 'c' [-Wunused-variable]
    5 |     float a,b,c;
      |               ^
/in/foo.c: At top level:
/in/foo.c:11:10: error: expected identifier or '(' before 'else'
   11 |         }else{
      |          ^~~~
/in/foo.c:14:9: error: expected identifier or '(' before 'return'
   14 |         return 0;
      |         ^~~~~~
/in/foo.c:15:1: error: expected identifier or '(' before '}' token
   15 | }
      | ^

信息

递交者
类型
自测
语言
C
递交时间
2025-11-08 16:46:50
评测时间
2025-11-08 16:46:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes