Borderou de evaluare (job #2579576)

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

Raport evaluator

Eroare de compilare: main.cpp:16:17: error: conflicting declaration 'int f [1005][1005]' int f[NMAX][NMAX]; ^ main.cpp:8:10: note: previous declaration as 'std::ifstream f' ifstream f("maxflow.in"); ^ main.cpp: In function 'int bfs()': main.cpp:33:29: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int') if(c[vf][v] == f[vf][v] || viz[v]) ^ main.cpp: In function 'int main()': main.cpp:45:5: error: 'fin' was not declared in this scope fin>>n>>m; ^~~ main.cpp:59:28: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int') if(c[v][n] == f[v][n] || !viz[v]) ^ main.cpp:65:52: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int') fluxmin=min(fluxmin, c[p[vf]][vf]-f[p[vf]][vf]); ^ main.cpp:70:18: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int') f[p[vf]][vf]+=fluxmin; ^ main.cpp:71:18: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int') f[vf][p[vf]]-=fluxmin; ^ Non zero exit status: 1

Ceva nu functioneaza?