Borderou de evaluare (job #2562477)

Utilizator aZvezdaAtanas Dimitrov aZvezda Data 29 februarie 2020 14:51:48
Problema Flux maxim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:10:2: error: 'vector' does not name a type vector<Edge> edges; ^~~~~~ main.cpp:11:2: error: 'vector' does not name a type vector<int> g[MAX_N]; ^~~~~~ main.cpp: In member function 'void FlowNetwork::add(int, int, int)': main.cpp:13:3: error: 'cout' was not declared in this scope cout << a << " " << b << " " << c << endl; ^~~~ main.cpp:13:40: error: 'endl' was not declared in this scope cout << a << " " << b << " " << c << endl; ^~~~ main.cpp:14:3: error: 'g' was not declared in this scope g[a].push_back(edges.size()); ^ main.cpp:14:18: error: 'edges' was not declared in this scope g[a].push_back(edges.size()); ^~~~~ main.cpp: In member function 'bool FlowNetwork::bfs()': main.cpp:22:46: error: 'mod' was not declared in this scope for(int i = 0; i < MAX_N; i ++) {dist[i] = mod; pind[i] = 0;} ^~~ main.cpp:24:3: error: 'queue' was not declared in this scope queue<int> q; q.push(s); ^~~~~ main.cpp:24:9: error: expected primary-expression before 'int' queue<int> q; q.push(s); ^~~ main.cpp:24:17: error: 'q' was not declared in this scope queue<int> q; q.push(s); ^ main.cpp:27:18: error: 'g' was not declared in this scope for(auto it : g[curr]) { ^ main.cpp:28:8: error: 'edges' was not declared in this scope if(edges[it].f < edges[it].cap && dist[edges[it].to] == mod) { ^~~~~ main.cpp:28:61: error: 'mod' was not declared in this scope if(edges[it].f < edges[it].cap && dist[edges[it].to] == mod) { ^~~ main.cpp:34:21: error: 'mod' was not declared in this scope return dist[t] != mod; ^~~ main.cpp: In member function 'int FlowNetwork::dfs(int, int)': main.cpp:39:19: error: 'g' was not declared in this scope for(; pind[x] < g[x].size();) { ^ main.cpp:41:27: error: 'edges' was not declared in this scope if(dist[x] + 1 != dist[edges[curr].to] || edges[curr].f >= edges[curr].cap) {continue;} Non zero exit status: 1

Ceva nu functioneaza?