0_0_32011583_18343.cpp:2:7: error: 'N' was not declared in this scope
int a[N][N];//增广矩阵
^
0_0_32011583_18343.cpp:2:10: error: 'N' was not declared in this scope
int a[N][N];//增广矩阵
^
0_0_32011583_18343.cpp:4:7: error: 'N' was not declared in this scope
int x[N];//解集
^
0_0_32011583_18343.cpp:6:11: error: 'N' was not declared in this scope
int freeX[N];//自由变元
^
0_0_32011583_18343.cpp: In function 'int Gauss(int, int)':
0_0_32011583_18343.cpp:14:9: error: 'x' was not declared in this scope
x[i]=0;
^
0_0_32011583_18343.cpp:16:9: error: 'freeX' was not declared in this scope
freeX[i]=0;
^
0_0_32011583_18343.cpp:36:20: error: 'a' was not declared in this scope
if(abs(a[i][col])>abs(a[maxRow][col]))
^
0_0_32011583_18343.cpp:36:29: error: 'abs' was not declared in this scope
if(abs(a[i][col])>abs(a[maxRow][col]))
^
0_0_32011583_18343.cpp:46:22: error: 'a' was not declared in this scope
swap(a[row][j],a[maxRow][j]);
^
0_0_32011583_18343.cpp:46:44: error: 'swap' was not declared in this scope
swap(a[row][j],a[maxRow][j]);
^
0_0_32011583_18343.cpp:50:12: error: 'a' was not declared in this scope
if(a[row][col]==0){//col列第row行以下全是0,处理当前行的下一列
^
0_0_32011583_18343.cpp:52:13: error: 'freeX' was not declared in this scope
freeX[num++]=col;//记录自由变元
^
0_0_32011583_18343.cpp:64:26: error: 'a' was not declared in this scope
if(i!=row && a[i][col]!=0){
^
0_0_32011583_18343.cpp:86:12: error: 'a' was not declared in this scope
if(a[i][col]!=0)
^
0_0_32011583_18343.cpp:106:9: error: 'x' was not declared in this scope
x[i]=a[i][var];
^
0_0_32011583_18343.cpp:106:14: error: 'a' was not declared in this scope
x[i]=a[i][var];
^
0_0_32011583_18343.cpp: In function 'int enumFreeX(int, int)':
0_0_32011583_18343.cpp:122:13: error: 'INF' was not declared in this scope
int res=INF;
^
0_0_32011583_18343.cpp:134:17: error: 'x' was not declared in this scope
x[freeX[j]]=1;
^
0_0_32011583_18343.cpp:134:19: error: 'freeX' was not declared in this scope
x[freeX[j]]=1;
^
0_0_32011583_18343.cpp:138:17: error: 'x' was not declared in this scope
x[freeX[j]]=0;
^
0_0_32011583_18343.cpp:138:19: error: 'freeX' was not declared in this scope
x[freeX[j]]=0;
^
0_0_32011583_18343.cpp:148:20: error: 'a' was not declared in this scope
if(a[k][index])
^
0_0_32011583_18343.cpp:154:13: error: 'x' was not declared in this scope
x[index]=a[k][var];
^
0_0_32011583_18343.cpp:154:22: error: 'a' was not declared in this scope
x[index]=a[k][var];
^
0_0_32011583_18343.cpp:168:24: error: 'min' was not declared in this scope
res=min(res,cnt);
^
0_0_32011583_18343.cpp: In function 'int main()':
0_0_32011583_18343.cpp:178:12: error: 'a' was not declared in this scope
memset(a,0,sizeof(a));
^
0_0_32011583_18343.cpp:178:25: error: 'memset' was not declared in this scope
memset(a,0,sizeof(a));
^
0_0_32011583_18343.cpp:184:27: error: 'scanf' was not declared in this scope
scanf("%d%d",&equ,&var);
^
0_0_32011583_18343.cpp:202:23: error: 'printf' was not declared in this scope
printf("inf\n");
^
0_0_32011583_18343.cpp:210:18: error: 'x' was not declared in this scope
res+=x[i];
^
0_0_32011583_18343.cpp:212:26: error: 'printf' was not declared in this scope
printf("%d\n",res);
^
0_0_32011583_18343.cpp:220:26: error: 'printf' was not declared in this scope
printf("%d\n",res);
^
|