Compile Error

/in/foo.c: In function 'main':
/in/foo.c:6:2: error: expected ';' before 'scanf'
  scanf("%d,%d,%d",&a,&b,&c);
  ^~~~~
/in/foo.c:7:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
  if(a<b)
    ^
/in/foo.c:12:2: error: 'elsi' undeclared (first use in this function)
  elsi if(a<c)
  ^~~~
/in/foo.c:12:2: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:12:7: error: expected ';' before 'if'
  elsi if(a<c)
       ^~
/in/foo.c:14:5: error: 'else' without a previous 'if'
     else
     ^~~~
/in/foo.c:15:12: error: 'max' undeclared (first use in this function)
     printf(max=%d\n",a);
            ^~~
/in/foo.c:15:16: error: expected expression before '%' token
     printf(max=%d\n",a);
                ^
/in/foo.c:15:18: error: stray '\' in program
     printf(max=%d\n",a);
                  ^
/in/foo.c:15:20: warning: missing terminating " character
     printf(max=%d\n",a);
                    ^
/in/foo.c:15:20: error: missing terminating " character
     printf(max=%d\n",a);
                    ^~~~~
/in/foo.c:17:1: error: expected ';' before '}' token
 }
 ^

信息

递交者
类型
递交
题目
P1001 第四章题目----三位数比较大小
语言
C
递交时间
2019-11-14 18:20:32
评测时间
2019-11-14 18:20:32
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes