Borderou de evaluare (job #3328581)

Utilizator MihneaDobrinDobrin Mihnea-Gabriel MihneaDobrin Data 9 decembrie 2025 12:50:26
Problema Flux maxim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int bfs(int, int)': main.cpp:12:20: error: 'n' was not declared in this scope 12 | for(int i=1;i<=n;i++) | ^ main.cpp:24:53: error: invalid operands of types 'int' and 'int [1001]' to binary 'operator-' 24 | if(!vis[vecin] && capacitate[nod][vecin]-flux[nod]>0) { | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | | | | int int [1001] main.cpp:42:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 42 | for(int i=0;i<path.size()-1;i++) { | ~^~~~~~~~~~~~~~ main.cpp:47:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 47 | for(int i=0;i<path.size();i++) { | ~^~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?