记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:6: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  if(a>b>c){
     ~^~
/in/foo.cc:7:9: error: 'abc' was not declared in this scope
   cout<<abc<<endl;
         ^~~
/in/foo.cc:9:11: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  else if(a>c>b){
          ~^~
/in/foo.cc:10:9: error: 'acb' was not declared in this scope
   cout<<acb<<endl;
         ^~~
/in/foo.cc:12:11: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  else if(b>a>c){
          ~^~
/in/foo.cc:13:9: error: 'bac' was not declared in this scope
   cout<<bac<<endl;
         ^~~
/in/foo.cc:15:11: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  else if(b>c>a){
          ~^~
/in/foo.cc:16:9: error: 'aca' was not declared in this scope
   cout<<aca<<endl;
         ^~~
/in/foo.cc:18:11: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  else if(c>a>b){
          ~^~
/in/foo.cc:19:9: error: 'cab' was not declared in this scope
   cout<<cab<<endl;
         ^~~
/in/foo.cc:21:11: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  else if(c>b>a){
          ~^~
/in/foo.cc:22:9: error: 'cba' was not declared in this scope
   cout<<cba<<endl;
         ^~~
/in/foo.cc:24:11: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
  else if(a==b==c){
          ~^~~
/in/foo.cc:25:9: error: 'abc' was not declared in this scope
   cout<<abc<<endl;
         ^~~
/in/foo.cc:28:1: error: expected ';' before '}' token
 }
 ^

信息

递交者
类型
自测
题目
结构化的程序格式,是编程世界的基石。
语言
C++
递交时间
2019-02-25 21:29:59
评测时间
2019-02-25 21:29:59
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes