Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:9:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    9 |         for(int k=2;k<=n*n;k++);
      |         ^~~
/in/foo.cc:10:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   10 |         {
      |         ^
/in/foo.cc:15:25: error: 'k' was not declared in this scope
   15 |                 a[i][j]=k;
      |                         ^

信息

递交者
类型
递交
题目
P2602 填幻方4级2 2023样卷
语言
C++
递交时间
2026-06-24 09:21:05
评测时间
2026-06-24 09:21:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes