0_0_29481917_26513.cpp:11:10: error: 'MAXN' was not declared in this scope
int mat[MAXN][MAXN], dif[MAXN][MAXN];
^
0_0_29481917_26513.cpp:11:16: error: 'MAXN' was not declared in this scope
int mat[MAXN][MAXN], dif[MAXN][MAXN];
^
0_0_29481917_26513.cpp:11:27: error: 'MAXN' was not declared in this scope
int mat[MAXN][MAXN], dif[MAXN][MAXN];
^
0_0_29481917_26513.cpp:11:33: error: 'MAXN' was not declared in this scope
int mat[MAXN][MAXN], dif[MAXN][MAXN];
^
0_0_29481917_26513.cpp:12:12: error: 'MAXN' was not declared in this scope
int label[MAXN], hash[MAXN], tmp[MAXN];
^
0_0_29481917_26513.cpp:12:24: error: 'MAXN' was not declared in this scope
int label[MAXN], hash[MAXN], tmp[MAXN];
^
0_0_29481917_26513.cpp:12:35: error: 'MAXN' was not declared in this scope
int label[MAXN], hash[MAXN], tmp[MAXN];
^
0_0_29481917_26513.cpp:15:11: error: 'MAXN' was not declared in this scope
int head[MAXN], ecnt;
^
0_0_29481917_26513.cpp:16:2: error: expected unqualified-id before ']' token
], next[MAXN << ];
^
0_0_29481917_26513.cpp: In function 'void init()':
0_0_29481917_26513.cpp:19:13: error: 'head' was not declared in this scope
memset(head + , -, n * sizeof(int));
^
0_0_29481917_26513.cpp:19:20: error: expected primary-expression before ',' token
memset(head + , -, n * sizeof(int));
^
0_0_29481917_26513.cpp:19:23: error: expected primary-expression before ',' token
memset(head + , -, n * sizeof(int));
^
0_0_29481917_26513.cpp:20:13: error: expected primary-expression before ';' token
ecnt = ;
^
0_0_29481917_26513.cpp: In function 'void add_edge(int, int)':
0_0_29481917_26513.cpp:24:6: error: 'to' was not declared in this scope
to[ecnt] = v; next[ecnt] = head[u]; head[u] = ecnt++;
^
0_0_29481917_26513.cpp:24:29: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
to[ecnt] = v; next[ecnt] = head[u]; head[u] = ecnt++;
^
0_0_29481917_26513.cpp:24:33: error: 'head' was not declared in this scope
to[ecnt] = v; next[ecnt] = head[u]; head[u] = ecnt++;
^
0_0_29481917_26513.cpp:25:29: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
to[ecnt] = u; next[ecnt] = head[v]; head[v] = ecnt++;
^
0_0_29481917_26513.cpp: At global scope:
0_0_29481917_26513.cpp:28:10: error: 'MAXN' was not declared in this scope
int que[MAXN], dis[MAXN];
^
0_0_29481917_26513.cpp:28:21: error: 'MAXN' was not declared in this scope
int que[MAXN], dis[MAXN];
^
0_0_29481917_26513.cpp: In function 'void bfs(int)':
0_0_29481917_26513.cpp:31:13: error: 'dis' was not declared in this scope
memset(dis + , 0x3f, n * sizeof(int));
^
0_0_29481917_26513.cpp:31:19: error: expected primary-expression before ',' token
memset(dis + , 0x3f, n * sizeof(int));
^
0_0_29481917_26513.cpp:32:6: error: expected primary-expression before ',' token
, r = ;
^
0_0_29481917_26513.cpp:32:8: error: 'r' was not declared in this scope
, r = ;
^
0_0_29481917_26513.cpp:32:12: error: expected primary-expression before ';' token
, r = ;
^
0_0_29481917_26513.cpp:33:10: error: 'que' was not declared in this scope
dis[que[r++] = st] = ;
^
0_0_29481917_26513.cpp:33:27: error: expected primary-expression before ';' token
dis[que[r++] = st] = ;
^
0_0_29481917_26513.cpp:34:12: error: 'l' was not declared in this scope
while(l != r) {
^
0_0_29481917_26513.cpp:36:22: error: 'head' was not declared in this scope
for(int p = head[u]; ~p; p = next[p]) {
^
0_0_29481917_26513.cpp:36:45: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
for(int p = head[u]; ~p; p = next[p]) {
^
0_0_29481917_26513.cpp:37:23: error: 'to' was not declared in this scope
int &v = to[p];
^
0_0_29481917_26513.cpp:38:15: error: expected primary-expression before '<' token
< dis[v]) {
^
0_0_29481917_26513.cpp:44:8: error: 'i' was not declared in this scope
; i <= n; ++i) mat[st][i] = dis[i];
^
0_0_29481917_26513.cpp: At global scope:
0_0_29481917_26513.cpp:47:10: error: 'MAXN' was not declared in this scope
int cnt[MAXN];
^
0_0_29481917_26513.cpp: In function 'void dfs(int, int, int&, int)':
0_0_29481917_26513.cpp:50:6: error: expected primary-expression before ')' token
) c++;
^
0_0_29481917_26513.cpp:51:6: error: 'dif' was not declared in this scope
dif[st][u] = c;
^
0_0_29481917_26513.cpp:52:18: error: 'head' was not declared in this scope
for(int p = head[u]; ~p; p = next[p]) {
^
0_0_29481917_26513.cpp:52:41: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
for(int p = head[u]; ~p; p = next[p]) {
^
0_0_29481917_26513.cpp:53:19: error: 'to' was not declared in this scope
int &v = to[p];
^
0_0_29481917_26513.cpp:57:6: error: expected primary-expression before ')' token
) c--;
^
0_0_29481917_26513.cpp: At global scope:
0_0_29481917_26513.cpp:60:13: error: 'MAXN' was not declared in this scope
double per[MAXN];
^
0_0_29481917_26513.cpp:61:2: error: expected unqualified-id before ')' token
) {
^
0_0_29481917_26513.cpp: In function 'double c(int, int)':
0_0_29481917_26513.cpp:67:13: error: 'per' was not declared in this scope
return per[n] - per[n - k] - per[k];
^
0_0_29481917_26513.cpp: In function 'double calc(int, int)':
0_0_29481917_26513.cpp:72:8: error: 'i' was not declared in this scope
; i <= n; ++i) {
^
0_0_29481917_26513.cpp:79:6: error: expected primary-expression before ',' token
, k - ) - c(n, k));
^
0_0_29481917_26513.cpp:79:12: error: expected primary-expression before ')' token
, k - ) - c(n, k));
^
0_0_29481917_26513.cpp: In function 'double solve()':
0_0_29481917_26513.cpp:84:6: error: expected primary-expression before ')' token
) ;
^
0_0_29481917_26513.cpp:85:6: error: expected primary-expression before ')' token
) ;
^
0_0_29481917_26513.cpp:87:8: error: 'i' was not declared in this scope
; i <= n; ++i) {
^
0_0_29481917_26513.cpp:92:13: error: 'res' was not declared in this scope
return res;
^
0_0_29481917_26513.cpp: In function 'int main()':
0_0_29481917_26513.cpp:96:14: error: 'initPer' was not declared in this scope
initPer();
^
0_0_29481917_26513.cpp:101:10: error: expected primary-expression before ',' token
, a, b; i < n; ++i) {
^
0_0_29481917_26513.cpp:101:12: error: 'a' was not declared in this scope
, a, b; i < n; ++i) {
^
0_0_29481917_26513.cpp:101:15: error: 'b' was not declared in this scope
, a, b; i < n; ++i) {
^
0_0_29481917_26513.cpp:101:18: error: 'i' was not declared in this scope
, a, b; i < n; ++i) {
^
0_0_29481917_26513.cpp:110:15: error: 'tmp' was not declared in this scope
sort(tmp, tmp + cnt);
^
0_0_29481917_26513.cpp:110:26: error: 'cnt' was not declared in this scope
sort(tmp, tmp + cnt);
^
0_0_29481917_26513.cpp:113:10: error: expected primary-expression before ',' token
, c = ; i <= n; ++i) dfs(i, , c, i);
^
0_0_29481917_26513.cpp:113:16: error: expected primary-expression before ';' token
, c = ; i <= n; ++i) dfs(i, , c, i);
^
|