#include<iostream>
#include<cstdio>
using namespace std;
int N=100;
int a[N][N];
int main()
{
}
编译出现了[Error] array bound is not an integer constant before ']' token;
只需要将int N=100修改为const intN = 100 即可
#include<iostream>
#include<cstdio>
using namespace std;
int N=100;
int a[N][N];
int main()
{
}
编译出现了[Error] array bound is not an integer constant before ']' token;
只需要将int N=100修改为const intN = 100 即可