F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_34002541_12360.cpp:1:7: error: 'N' was not declared in this scope
 int a[N][N];//增广矩阵
       ^
0_0_34002541_12360.cpp:1:10: error: 'N' was not declared in this scope
 int a[N][N];//增广矩阵
          ^
0_0_34002541_12360.cpp:2:7: error: 'N' was not declared in this scope
 int x[N];//解集
       ^
0_0_34002541_12360.cpp:3:12: error: 'N' was not declared in this scope
 bool freeX[N];//标记是否为自由变元
            ^
0_0_34002541_12360.cpp: In function 'int Gauss(int, int)':
0_0_34002541_12360.cpp:13:9: error: 'x' was not declared in this scope
         x[i]=0;
         ^
0_0_34002541_12360.cpp:14:9: error: 'freeX' was not declared in this scope
         freeX[i]=true;
         ^
0_0_34002541_12360.cpp:23:20: error: 'a' was not declared in this scope
             if(abs(a[i][col])>abs(a[maxRow][col]))
                    ^
0_0_34002541_12360.cpp:23:29: error: 'abs' was not declared in this scope
             if(abs(a[i][col])>abs(a[maxRow][col]))
                             ^
0_0_34002541_12360.cpp:28:22: error: 'a' was not declared in this scope
                 swap(a[row][j],a[maxRow][j]);
                      ^
0_0_34002541_12360.cpp:28:44: error: 'swap' was not declared in this scope
                 swap(a[row][j],a[maxRow][j]);
                                            ^
0_0_34002541_12360.cpp:30:12: error: 'a' was not declared in this scope
         if(a[row][col]==0){//col列第row行以下全是0,处理当前行的下一列
            ^
0_0_34002541_12360.cpp:36:16: error: 'a' was not declared in this scope
             if(a[i][col]!=0){
                ^
0_0_34002541_12360.cpp:37:42: error: 'abs' was not declared in this scope
                 int lcm=LCM(abs(a[i][col]),abs(a[row][col]));
                                          ^
0_0_34002541_12360.cpp:52:13: error: 'a' was not declared in this scope
         if (a[i][col]!=0)
             ^
0_0_34002541_12360.cpp:62:18: error: 'a' was not declared in this scope
         int temp=a[i][var];
                  ^
0_0_34002541_12360.cpp:65:31: error: 'x' was not declared in this scope
                 temp-=a[i][j]*x[j];
                               ^
0_0_34002541_12360.cpp:69:9: error: 'x' was not declared in this scope
         x[i]=temp/a[i][i];
         ^
0_0_34002541_12360.cpp: In function 'int main()':
0_0_34002541_12360.cpp:76:33: error: 'scanf' was not declared in this scope
     while(scanf("%d%d",&equ,&var)!=EOF) {
                                 ^
0_0_34002541_12360.cpp:76:36: error: 'EOF' was not declared in this scope
     while(scanf("%d%d",&equ,&var)!=EOF) {
                                    ^
0_0_34002541_12360.cpp:78:16: error: 'a' was not declared in this scope
         memset(a,0,sizeof(a));
                ^
0_0_34002541_12360.cpp:78:29: error: 'memset' was not declared in this scope
         memset(a,0,sizeof(a));
                             ^
0_0_34002541_12360.cpp:86:28: error: 'printf' was not declared in this scope
             printf("无解\n");
                            ^
0_0_34002541_12360.cpp:88:32: error: 'printf' was not declared in this scope
             printf("无整数解\n");
                                ^
0_0_34002541_12360.cpp:90:60: error: 'printf' was not declared in this scope
             printf("有无穷多解,自由变元个数为%d\n",freeNum);
                                                            ^
0_0_34002541_12360.cpp:92:20: error: 'freeX' was not declared in this scope
                 if(freeX[i])
                    ^
0_0_34002541_12360.cpp:95:43: error: 'x' was not declared in this scope
                     printf("x%d=%d\n",i+1,x[i]);
                                           ^
0_0_34002541_12360.cpp:100:39: error: 'x' was not declared in this scope
                 printf("x%d=%d\n",i+1,x[i]);
                                       ^
0_0_34002541_12360.cpp:100:43: error: 'printf' was not declared in this scope
                 printf("x%d=%d\n",i+1,x[i]);
                                           ^
0_0_34002541_12360.cpp:102:20: error: 'printf' was not declared in this scope
         printf("\n");
                    ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-06-26 14:19:36, Gzip enabled