Borderou de evaluare (job #3377470)

Utilizator Miruna211Dracopol Miruna Elena Miruna211 Data 23 noiembrie 2026 14:38:27
Problema Flux maxim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:27: error: 'nmax' was not declared in this scope; did you mean 'fmax'? 8 | int capacitate[NMAX + 1][ nmax + 1]; | ^~~~ | fmax main.cpp: In function 'int ek(int, int)': main.cpp:17:19: error: no matching function for call to 'std::queue<int>::empty(int)' 17 | while(!q.empty(0){ | ~~~~~~~^~~ In file included from /usr/include/c++/12.2.1/queue:64, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:86, from main.cpp:1: /usr/include/c++/12.2.1/bits/stl_queue.h:218:7: note: candidate: 'bool std::queue<_Tp, _Sequence>::empty() const [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >]' 218 | empty() const | ^~~~~ /usr/include/c++/12.2.1/bits/stl_queue.h:218:7: note: candidate expects 0 arguments, 1 provided main.cpp:17:22: error: expected ')' before '{' token 17 | while(!q.empty(0){ | ~ ^ | ) main.cpp:21:28: error: 'capacitate' was not declared in this scope 21 | if(vis[vec] && capacitate[node][vec] - flux[node][vec] > 0){ | ^~~~~~~~~~ main.cpp:40:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 40 | for(int i = 0; i <drum.size() -1; i++){ | ~~^~~~~~~~~~~~~~~ main.cpp:43:19: error: 'capacitate' was not declared in this scope 43 | int val = capacitate[x][y] - flux[x][y]; | ^~~~~~~~~~ main.cpp:48:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 48 | for(int i = 0; i < drum.size()-1; i++){ | ~~^~~~~~~~~~~~~~~ main.cpp:54:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 54 | int main(){ | ^~ main.cpp:54:9: note: remove parentheses to default-initialize a variable 54 | int main(){ | ^~ | -- main.cpp:54:9: note: or replace parentheses with braces to value-initialize a variable main.cpp:54:11: error: a function-definition is not allowed here before '{' token 54 | int main(){ | ^ main.cpp:72:2: error: expected '}' at end of input 72 | } | ^ main.cpp:10:34: note: to match this '{' 10 | int ek(int sursa, int destinatie){ | ^ main.cpp:72:2: warning: control reaches end of non-void function [-Wreturn-type] 72 | } Non zero exit status: 1

Ceva nu functioneaza?