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:11:11: warning: missing terminating " character
    printf("max=%d\n,b);
           ^
/in/foo.c:11:11: error: missing terminating " character
    printf("max=%d\n,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: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:0: note: -Wmisleading-indentation is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers
 }
 
/in/foo.c:7:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
  if(a<b)
    ^
/in/foo.c:17:1: error: expected declaration or statement at end of input
 }
 ^

信息

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