Compile Error

foo.cc: In function 'int main()':
foo.cc:13:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   13 |  else if(n==3)
      |       ^~
foo.cc:15:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   15 |   cout<<"4    1    8"<<endl;
      |   ^~~~
foo.cc: At global scope:
foo.cc:18:2: error: expected unqualified-id before 'else'
   18 |  else if(n==4)
      |  ^~~~
foo.cc:25:2: error: expected unqualified-id before 'else'
   25 |  else
      |  ^~~~
foo.cc:33:2: error: expected unqualified-id before 'return'
   33 |  return 0;
      |  ^~~~~~
foo.cc:34:1: error: expected declaration before '}' token
   34 | }
      | ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1096 蛇形矩阵(2)
语言
C++
递交时间
2022-07-16 20:38:58
评测时间
2022-07-16 20:38:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes