0_0_20916766_2301.cpp:4:46: error: invalid types 'int[int]' for array subscript
int all[max][max],some[max][max],none[max[max];
^
0_0_20916766_2301.cpp:4:47: error: expected ']' before ';' token
int all[max][max],some[max][max],none[max[max];
^
0_0_20916766_2301.cpp:6:1: error: expected initializer before 'int'
int cmp(int x,int y)
^
0_0_20916766_2301.cpp: In function 'double dis(int, int)':
0_0_20916766_2301.cpp:18:22: error: no match for 'operator-' (operand types are 'int' and 'node')
return (node[i].x-node[j]-x)*(node[i].x-node[j].x)+(node[i].y-node[j].y)*(node[i].y-node[j].y);
^
0_0_20916766_2301.cpp:18:31: error: 'x' was not declared in this scope
return (node[i].x-node[j]-x)*(node[i].x-node[j].x)+(node[i].y-node[j].y)*(node[i].y-node[j].y);
^
0_0_20916766_2301.cpp: In function 'void dfs(int, int, int, int)':
0_0_20916766_2301.cpp:22:23: error: return-statement with a value, in function returning 'void' [-fpermissive]
if(ans>=k) return 1;
^
0_0_20916766_2301.cpp:23:26: error: return-statement with a value, in function returning 'void' [-fpermissive]
if (ans+sn<k) return 0;
^
0_0_20916766_2301.cpp:24:31: error: 'S' was not declared in this scope
if(sn == 0 && nn == 0) ++ S; //得到的是极大团,最大团是极大团里面顶点数最多的
^
0_0_20916766_2301.cpp:29:12: error: 'g' was not declared in this scope
if(g[u][v]) continue;
^
0_0_20916766_2301.cpp:33:40: error: 'g' was not declared in this scope
for(int j = 0; j < sn; j ++)if(g[v][some[d][j]]) some[d + 1][tsn ++] = some[d][j];
^
0_0_20916766_2301.cpp:34:41: error: 'g' was not declared in this scope
for(int j = 0; j < nn; j ++) if(g[v][none[d][j]]) none[d + 1][tnn ++] = none[d][j];
^
0_0_20916766_2301.cpp:34:46: error: 'none' was not declared in this scope
for(int j = 0; j < nn; j ++) if(g[v][none[d][j]]) none[d + 1][tnn ++] = none[d][j];
^
0_0_20916766_2301.cpp:35:39: error: could not convert 'dfs((d + 1), (an + 1), tsn, tnn)' from 'void' to 'bool'
if(dfs(d + 1, an + 1, tsn, tnn)) return 1;
^
0_0_20916766_2301.cpp:35:49: error: return-statement with a value, in function returning 'void' [-fpermissive]
if(dfs(d + 1, an + 1, tsn, tnn)) return 1;
^
0_0_20916766_2301.cpp:38:9: error: 'none' was not declared in this scope
none[d][nn ++] = v;
^
0_0_20916766_2301.cpp: In function 'int main()':
0_0_20916766_2301.cpp:46:31: error: base operand of '->' has non-pointer type 'node'
scanf("%d %d",&node[i]->x,&node[i]->y);
^
0_0_20916766_2301.cpp:46:43: error: base operand of '->' has non-pointer type 'node'
scanf("%d %d",&node[i]->x,&node[i]->y);
^
0_0_20916766_2301.cpp:56:13: error: 'mmm' was not declared in this scope
mmm[w]=map[i][j];
^
0_0_20916766_2301.cpp:58:15: error: 'mmm' was not declared in this scope
qsort(mmm,w,sizeof(mmm),cmp);
^
0_0_20916766_2301.cpp:58:33: error: 'cmp' was not declared in this scope
qsort(mmm,w,sizeof(mmm),cmp);
^
0_0_20916766_2301.cpp:58:36: error: 'qsort' was not declared in this scope
qsort(mmm,w,sizeof(mmm),cmp);
^
0_0_20916766_2301.cpp:68:13: error: 'le' was not declared in this scope
le=dis[mid];
^
0_0_20916766_2301.cpp:69:27: error: could not convert 'dfs(1, 0, n, 0)' from 'void' to 'bool'
if(dfs(1,0,n,0))
^
0_0_20916766_2301.cpp:72:28: error: invalid conversion from 'double (*)(int, int)' to 'int' [-fpermissive]
ans=dis[mid];
^
|