Bootstrap

c语言编译、运行时出现错误

编译时:

(1)error: array type has incomplete element type

报错一行的代码为

long long  prim(int cost[][],int n,int u)

二维数组作为参数不能这样输入,应输入为

int cost[][max];
或者
int(*)cost[];

以下的输入同样不符合规定:

int* cost[];
int** cost;

运行时:

(1)Process returned -1073741571 (0xC00000FD) execution time : 10.395 s

一般为数组越界,或者递归出现问题。
特别注意:非静态变量数组不能开得太大,否则会报同样错误。

(2)

;