Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:9:10: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if(a>b&&b>c||a>c&&c>b)
       ~~~^~~~~
/in/foo.cc:15:15: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    else if(b>a&&a>c||b>c&&c>a) 
            ~~~^~~~~
/in/foo.cc:32:4: error: expected ';' before 'if'
    if(a==c&&b==c&&a==b)
    ^~
/in/foo.cc:36:4: error: expected '}' before 'else'
    else if(a==b&&b==a)
    ^~~~
/in/foo.cc: At global scope:
/in/foo.cc:50:4: error: expected unqualified-id before 'else'
    else
    ^~~~
/in/foo.cc:54:4: error: expected unqualified-id before 'return'
    return 0;
    ^~~~~~
/in/foo.cc:55:1: error: expected declaration before '}' token
 }
 ^

信息

递交者
类型
递交
题目
P1161 识别三角形
语言
C++
递交时间
2021-12-11 21:37:39
评测时间
2021-12-11 21:37:39
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes