0_0_15282030_19249.cpp: In function 'void init()':
0_0_15282030_19249.cpp:25:29: error: 'memset' was not declared in this scope
memset(head, 0, sizeof head);
^
0_0_15282030_19249.cpp: In function 'void bfs(int, int)':
0_0_15282030_19249.cpp:41:32: error: 'memset' was not declared in this scope
memset(layer, -1, sizeof layer);
^
0_0_15282030_19249.cpp:43:2: error: 'queue' is not a member of 'std'
std::queue<int> que;
^
0_0_15282030_19249.cpp:43:13: error: expected primary-expression before 'int'
std::queue<int> que;
^
0_0_15282030_19249.cpp:44:2: error: 'que' was not declared in this scope
que.push(src);
^
0_0_15282030_19249.cpp: In function 'int dfs(int, int, int)':
0_0_15282030_19249.cpp:65:33: error: 'min' is not a member of 'std'
int d = dfs(edge[i].v, sink, std::min(min_flow, edge[i].cap));
^
0_0_15282030_19249.cpp: In function 'int dinic(int, int)':
0_0_15282030_19249.cpp:82:25: error: 'INF' was not declared in this scope
res += dfs(src, sink, INF);
^
0_0_15282030_19249.cpp: In function 'int main()':
0_0_15282030_19249.cpp:88:24: error: 'scanf' was not declared in this scope
while (~scanf("%d", &n)) {
^
0_0_15282030_19249.cpp:90:11: error: 'INF' was not declared in this scope
a[0] = -INF;
^
0_0_15282030_19249.cpp:92:28: error: 'memset' was not declared in this scope
memset(ans, 0, sizeof ans);
^
0_0_15282030_19249.cpp:104:15: error: 'upper_bound' is not a member of 'std'
int pos = std::upper_bound(dp, dp+len, a[i]) - dp;
^
0_0_15282030_19249.cpp:133:30: error: 'printf' was not declared in this scope
printf("%d\n%d\n", len, res);
^
|