0_0_18130702_27158.cpp: In function 'bool check()':
0_0_18130702_27158.cpp:13:23: error: 'n' was not declared in this scope
for (int i = 1; i <= n; i++)
^
0_0_18130702_27158.cpp: In function 'void color(int, int, int)':
0_0_18130702_27158.cpp:33:13: error: 'd' was not declared in this scope
color(x + d[x], y + d[y]);
^
0_0_18130702_27158.cpp: In function 'void changecolor(int)':
0_0_18130702_27158.cpp:38:23: error: 'n' was not declared in this scope
for (int i = 1; i <= n; i++)
^
0_0_18130702_27158.cpp: In function 'void dfs(int, int, int)':
0_0_18130702_27158.cpp:46:21: error: 'min' was not declared in this scope
ans = min(ans, dep);
^
0_0_18130702_27158.cpp:49:26: error: 'memset' was not declared in this scope
memset(ma, 0, sizeof(ma));
^
0_0_18130702_27158.cpp:51:2: error: 'set' was not declared in this scope
set<int> plans;
^
0_0_18130702_27158.cpp:51:6: error: expected primary-expression before 'int'
set<int> plans;
^
0_0_18130702_27158.cpp:52:23: error: 'n' was not declared in this scope
for (int i = 1; i <= n; i++)
^
0_0_18130702_27158.cpp:55:5: error: 'plans' was not declared in this scope
plans.insert(ma[i][j]);
^
0_0_18130702_27158.cpp:57:11: error: expected primary-expression before 'int'
for (set<int>::iterator i = plans.begin(); i != plans.end(); i++) {
^
0_0_18130702_27158.cpp:57:45: error: 'i' was not declared in this scope
for (set<int>::iterator i = plans.begin(); i != plans.end(); i++) {
^
0_0_18130702_27158.cpp:57:50: error: 'plans' was not declared in this scope
for (set<int>::iterator i = plans.begin(); i != plans.end(); i++) {
^
0_0_18130702_27158.cpp:60:15: error: 'ff' was not declared in this scope
memcpy(fct, ff, sizeof(fct));
^
0_0_18130702_27158.cpp:60:30: error: 'memcpy' was not declared in this scope
memcpy(fct, ff, sizeof(fct));
^
0_0_18130702_27158.cpp: In function 'int main()':
0_0_18130702_27158.cpp:69:23: error: 'scanf' was not declared in this scope
while (scanf("%d", &n) == 1 && n) {
^
0_0_18130702_27158.cpp:70:29: error: 'memset' was not declared in this scope
memset(ma, inf, sizeof(ma));
^
|