Compile Error

foo.cc: In function 'int main()':
foo.cc:8:2: error: break statement not within loop or switch
  break;
  ^~~~~
foo.cc:9:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(a+c<=b)cout<<"NO"<<endl;break;
  ^~
foo.cc:9:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  if(a+c<=b)cout<<"NO"<<endl;break;
                             ^~~~~
foo.cc:9:29: error: break statement not within loop or switch
foo.cc:10:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(b+c<=a)cout<<"NO"<<endl;break;
  ^~
foo.cc:10:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  if(b+c<=a)cout<<"NO"<<endl;break;
                             ^~~~~
foo.cc:10:29: error: break statement not within loop or switch
foo.cc:11:2: error: 'else' without a previous 'if'
  else
  ^~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
P1701 求三角形面积
比赛
盛泽二中编程社团 5月阶段练习
语言
C++
递交时间
2021-05-12 16:59:27
评测时间
2021-05-12 16:59:27
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes