Borderou de evaluare (job #2579578)

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

Raport evaluator

Eroare de compilare: main.cpp: In function 'bool bfs()': main.cpp:23:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<g[nod].size(); i++){ ~^~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:46:10: error: no match for 'operator[]' (operand types are 'std::ofstream {aka std::basic_ofstream<char>}' and 'int') g[a].push_back(b); ^ main.cpp:47:10: error: no match for 'operator[]' (operand types are 'std::ofstream {aka std::basic_ofstream<char>}' and 'int') g[b].push_back(a); ^ main.cpp:53:28: error: no match for 'operator[]' (operand types are 'std::ofstream {aka std::basic_ofstream<char>}' and 'int') for(int j = 0; j< g[n].size(); j++){ ^ main.cpp:55:21: error: no match for 'operator[]' (operand types are 'std::ofstream {aka std::basic_ofstream<char>}' and 'int') p[n] = g[n][j]; ^ main.cpp:56:45: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int') if(!viz[p[n]] || c[p[n]][n] == f[p[n]][n]) ^ main.cpp:59:52: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int') fmin = min(fmin, c[p[nod]][nod] - f[p[nod]][nod]); ^ main.cpp:62:18: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int') f[p[nod]][nod] += fmin; ^ main.cpp:63:18: error: no match for 'operator[]' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'int') f[nod][p[nod]] -= fmin; ^ Non zero exit status: 1

Ceva nu functioneaza?