0_0_26319575_16736.cpp:68:1: error: stray '\270' in program
改进版,时间从0.50到了0.29,快了很多
^
0_0_26319575_16736.cpp:68:1: error: stray '\304' in program
0_0_26319575_16736.cpp:68:1: error: stray '\275' in program
0_0_26319575_16736.cpp:68:1: error: stray '\370' in program
0_0_26319575_16736.cpp:68:1: error: stray '\260' in program
0_0_26319575_16736.cpp:68:1: error: stray '\346' in program
0_0_26319575_16736.cpp:68:1: error: stray '\243' in program
0_0_26319575_16736.cpp:68:1: error: stray '\254' in program
0_0_26319575_16736.cpp:68:1: error: stray '\312' in program
0_0_26319575_16736.cpp:68:1: error: stray '\261' in program
0_0_26319575_16736.cpp:68:1: error: stray '\274' in program
0_0_26319575_16736.cpp:68:1: error: stray '\344' in program
0_0_26319575_16736.cpp:68:1: error: stray '\264' in program
0_0_26319575_16736.cpp:68:1: error: stray '\323' in program
0_0_26319575_16736.cpp:68:1: error: stray '\265' in program
0_0_26319575_16736.cpp:68:1: error: stray '\275' in program
0_0_26319575_16736.cpp:68:1: error: stray '\301' in program
0_0_26319575_16736.cpp:68:1: error: stray '\313' in program
0_0_26319575_16736.cpp:68:1: error: stray '\243' in program
0_0_26319575_16736.cpp:68:1: error: stray '\254' in program
0_0_26319575_16736.cpp:68:1: error: stray '\277' in program
0_0_26319575_16736.cpp:68:1: error: stray '\354' in program
0_0_26319575_16736.cpp:68:1: error: stray '\301' in program
0_0_26319575_16736.cpp:68:1: error: stray '\313' in program
0_0_26319575_16736.cpp:68:1: error: stray '\272' in program
0_0_26319575_16736.cpp:68:1: error: stray '\334' in program
0_0_26319575_16736.cpp:68:1: error: stray '\266' in program
0_0_26319575_16736.cpp:68:1: error: stray '\340' in program
0_0_26319575_16736.cpp: In function 'int min(int, int)':
0_0_26319575_16736.cpp:7:2: error: 'nbsp' was not declared in this scope
if(a>b) return b;
^
0_0_26319575_16736.cpp: In function 'void dfs(int)':
0_0_26319575_16736.cpp:12:2: error: 'nbsp' was not declared in this scope
int i,j,num2=0;
^
0_0_26319575_16736.cpp:18:52: error: continue statement not within a loop
if(a[list[i]][list[j]]==b[i][j]) continue;
^
0_0_26319575_16736.cpp:21:19: error: 'else' without a previous 'if'
else
^
0_0_26319575_16736.cpp:27:7: error: 'else' without a previous 'if'
else
^
0_0_26319575_16736.cpp: In function 'int main()':
0_0_26319575_16736.cpp:39:2: error: 'nbsp' was not declared in this scope
int i,j,x,y,count=0;
^
0_0_26319575_16736.cpp:47:36: error: break statement not within loop or switch
if(n==0&&ma==0&&mb==0) break;
^
0_0_26319575_16736.cpp: At global scope:
0_0_26319575_16736.cpp:67:6: error: expected constructor, destructor, or type conversion before ';' token
^
0_0_26319575_16736.cpp:68:15: error: expected unqualified-id before numeric constant
改进版,时间从0.50到了0.29,快了很多
^
0_0_26319575_16736.cpp:71:5: error: redefinition of 'int n'
int n,ma,mb,ia,ib,da,db,ii,dd,num,list[9];
^
0_0_26319575_16736.cpp:4:5: note: 'int n' previously declared here
int n,ma,mb,ia,ib,da,db,ii,dd,num,list[9];
^
0_0_26319575_16736.cpp:71:7: error: redefinition of 'int ma'
int n,ma,mb,ia,ib,da,db,ii,dd,num,list[9];
^
0_0_26319575_16736.cpp:4:7: note: 'int ma' previously declared here
int n,ma,mb,ia,ib,da,db,ii,dd,num,list[9];
^
0_0_26319575_16736.cpp:71:10: error: redefinition of 'int mb'
int n,ma,mb,ia,ib,da,db,ii,dd,num,list[9];
^
0_0_26319575_16736.cpp:4:10: note: 'int mb' previously declared here
int n,ma,mb,ia,ib,da,db,ii,dd,num,list[9];
^
0_0_26319575_16736.cpp:71:13: error: redefinition of 'int ia'
int n,ma,mb,ia,ib,da,db,ii,dd,num,list[9];
^
0_0_26319575_16736.cpp:4:13: note: 'int ia' previously declared here
int n,ma,mb,ia,ib,da,db,ii,dd,num,list[9];
^
0_0_26319575_16736.cpp:71:16: error: redefinition of 'int ib'
int n,ma,mb,ia,ib,da,db,ii,dd,num,list[9];
^
0_0_26319575_16736.cpp:4:16: note: 'int ib' previously declared here
int n,ma,mb,ia,ib,da,db,ii,dd,num,list[9];
^
0_0_26319575_16736.cpp:71:19: error: redefinition of 'int da'
int n,ma,mb,ia,ib,da,db,ii,dd,num,list[9];
^
0_0_26319575_16736.cpp:4:19: note: 'int da' previously declared here
int n,ma,mb,ia,ib,da,db,ii,dd,num,list[9];
^
0_0_26319575_16736.cpp:71:22: error: redefinition of 'int db'
int n,ma,mb,ia,ib,da,db,ii,dd,num,list[9];
^
0_0_26319575_16736.cpp:4:22: note: 'int db' previously declared here
int n,ma,mb,ia,ib,da,db,ii,dd,num,list[9];
^
0_0_26319575_16736.cpp:71:25: error: redefinition of 'int ii'
int n,ma,mb,ia,ib,da,db,ii,dd,num,list[9];
^
0_0_26319575_16736.cpp:4:25: note: 'int ii' previously declared here
int n,ma,mb,ia,ib,da,db,ii,dd,num,list[9];
^
0_0_26319575_16736.cpp:71:28: error: redefinition of 'int dd'
int n,ma,mb,ia,ib,da,db,ii,dd,num,list[9];
^
0_0_26319575_16736.cpp:4:28: note: 'int dd' previously declared here
int n,ma,mb,ia,ib,da,db,ii,dd,num,list[9];
^
0_0_26319575_16736.cpp:71:31: error: redefinition of 'int num'
int n,ma,mb,ia,ib,da,db,ii,dd,num,list[9];
^
0_0_26319575_16736.cpp:4:31: note: 'int num' previously declared here
int n,ma,mb,ia,ib,da,db,ii,dd,num,list[9];
^
0_0_26319575_16736.cpp:71:41: error: redefinition of 'int list [9]'
int n,ma,mb,ia,ib,da,db,ii,dd,num,list[9];
^
0_0_26319575_16736.cpp:4:35: note: 'int list [9]' previously declared here
int n,ma,mb,ia,ib,da,db,ii,dd,num,list[9];
^
0_0_26319575_16736.cpp: In function 'int min(int, int)':
0_0_26319575_16736.cpp:72:5: error: redefinition of 'int min(int, int)'
int min(int a,int b)
^
0_0_26319575_16736.cpp:5:5: note: 'int min(int, int)' previously defined here
int min(int a,int b)
^
0_0_26319575_16736.cpp:74:2: error: 'nbsp' was not declared in this scope
if(a>b) return b;
^
0_0_26319575_16736.cpp: In function 'void dfs(int)':
0_0_26319575_16736.cpp:77:6: error: redefinition of 'void dfs(int)'
void dfs(int k) //由于N小于等于8,所以可以使用穷搜,为N!,8!= 40320,很小
^
0_0_26319575_16736.cpp:10:6: note: 'void dfs(int)' previously defined here
void dfs(int k) //由于N小于等于8,所以可以使用穷搜,为N!,8!= 40320,很小
^
0_0_26319575_16736.cpp:79:2: error: 'nbsp' was not declared in this scope
int i,j,num2=0;
^
0_0_26319575_16736.cpp:85:52: error: continue statement not within a loop
if(a[list[i]][list[j]]==b[i][j]) continue;
^
0_0_26319575_16736.cpp:88:19: error: 'else' without a previous 'if'
else
^
0_0_26319575_16736.cpp:94:7: error: 'else' without a previous 'if'
else
^
0_0_26319575_16736.cpp: In function 'int main()':
0_0_26319575_16736.cpp:104:5: error: redefinition of 'int main()'
int main()
^
0_0_26319575_16736.cpp:37:5: note: 'int main()' previously defined here
int main()
^
0_0_26319575_16736.cpp:106:2: error: 'nbsp' was not declared in this scope
int i,j,x,y,count=0;
^
0_0_26319575_16736.cpp:114:36: error: break statement not within loop or switch
if(n==0&&ma==0&&mb==0) break;
^
|