Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if (x<1);
  ^~
/in/foo.cc:8:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  {
  ^
/in/foo.cc:11:5: error: 'else' without a previous 'if'
     else if (x<10)
     ^~~~

信息

递交者
类型
递交
题目
P1021 分段函数
语言
C++
递交时间
2021-11-28 20:45:32
评测时间
2021-11-28 20:45:32
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes