相关疑难解决方法(0)

11 6 [错误]'i'的名称查找为ISO'更改'范围[-fpermissive]

#include<iostream>
#include<conio.h>

int a[9][9], b[9][9];

int inputvalue(int x, int y, int value)
{
    for (int i = 0; i < 9; i++) {
        if (value == b[x][i] || value == b[i][y])
            return 0;
    }
    for (i = (x / 3) * 3; i <= ((x / 3) * 3) + 2; i++)
        for (int j = (y / 3) * 3; j <= ((y / 3) * 3) + 2; j++)
            if (b[i][j] == value)
                return 0;
    return value;
}
Run Code Online (Sandbox Code Playgroud)

c++

-7
推荐指数
1
解决办法
1万
查看次数

标签 统计

c++ ×1