Borderou de evaluare (job #2579572)

Utilizator denisaaabBucur Denisa Andreea denisaaab Data 12 martie 2020 16:58:55
Problema Flux maxim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:9:20: error: conflicting declaration 'std::vector<int> g [1001]' vector <int> g[1001]; ^ main.cpp:8:10: note: previous declaration as 'std::ofstream g' ofstream g("maxflow.out"); ^ main.cpp:11:32: error: conflicting declaration 'int f [1001][1001]' int c[1001][1001], f[1001][1001]; ^ main.cpp:7:10: note: previous declaration as 'std::ifstream f' ifstream f("maxflow.in"); ^ main.cpp: In function 'void citire()': main.cpp:20:10: error: no match for 'operator[]' (operand types are 'std::ofstream {aka std::basic_ofstream<char>}' and 'int') g[x].push_back(y); ^ main.cpp:21:10: error: no match for 'operator[]' (operand types are 'std::ofstream {aka std::basic_ofstream<char>}' and 'int') g[y].push_back(x); ^ main.cpp: In function 'void bfs()': main.cpp:37:21: error: 'graph' was not declared in this scope for(auto &v:graph[nod]) ^~~~~ main.cpp:39:30: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int') if(c[nod][v] == f[nod][v] || viz[v]) ^ main.cpp:42:13: error: 'tata' was not declared in this scope tata[v]=nod; ^~~~ main.cpp:47:17: error: return-statement with a value, in function returning 'void' [-fpermissive] return viz[n]; ^ main.cpp: In function 'int main()': main.cpp:53:19: error: could not convert 'bfs()' from 'void' to 'bool' for(flux=0;bfs();) ~~~^~ main.cpp:55:21: error: 'graph' was not declared in this scope for(auto &i:graph[n]) ^~~~~ main.cpp:63:49: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int') fluxmin=min(fluxmin,c[p[j]][j]-f[p[j]][j]) ^ main.cpp:64:25: error: 'j' was not declared in this scope for(int j=n;j!=1;j=p[j]) ^ main.cpp:69:19: error: 'fmin' was not declared in this scope flux+=fmin; ^~~~ Non zero exit status: 1

Ceva nu functioneaza?