Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:8:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(n>2);
  ^~
/in/foo.cc:9:7: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
       s=2*10.5+(n+2)*4; 
       ^
/in/foo.cc:10:2: error: 'else' without a previous 'if'
  else 
  ^~~~

信息

递交者
类型
递交
语言
C++
递交时间
2021-12-23 21:17:04
评测时间
2021-12-23 21:17:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes