Borderou de evaluare (job #3258442)

Utilizator razviii237Uzum Razvan razviii237 Data 22 noiembrie 2024 14:42:14
Problema Flux maxim de cost minim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:14:1: error: 'vector' does not name a type 14 | vector<int> v[maxn]; | ^~~~~~ main.cpp:15:1: error: 'queue' does not name a type 15 | queue<int> q; | ^~~~~ main.cpp:16:32: error: 'vector' was not declared in this scope 16 | priority_queue<pair<int, int>, vector<pair<int, int> >, greater<pair<int, int> > > pq; | ^~~~~~ main.cpp:4:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? 3 | #include <cstring> +++ |+#include <vector> 4 | main.cpp:16:32: error: 'vector' was not declared in this scope 16 | priority_queue<pair<int, int>, vector<pair<int, int> >, greater<pair<int, int> > > pq; | ^~~~~~ main.cpp:16:32: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:16:32: error: 'vector' was not declared in this scope main.cpp:16:32: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:16:32: error: 'vector' was not declared in this scope main.cpp:16:32: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:16:32: error: 'vector' was not declared in this scope main.cpp:16:32: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:16:32: error: 'vector' was not declared in this scope main.cpp:16:32: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:16:32: error: 'vector' was not declared in this scope main.cpp:16:32: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:16:32: error: 'vector' was not declared in this scope main.cpp:16:32: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:16:32: error: 'vector' was not declared in this scope main.cpp:16:32: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:16:1: error: 'priority_queue' does not name a type 16 | priority_queue<pair<int, int>, vector<pair<int, int> >, greater<pair<int, int> > > pq; | ^~~~~~~~~~~~~~ main.cpp: In function 'void bellmanford()': main.cpp:24:5: error: 'q' was not declared in this scope 24 | q.push(s); | ^ main.cpp:29:22: error: 'v' was not declared in this scope 29 | for(auto u : v[x]) { | ^ main.cpp: In function 'bool dijkstra()': main.cpp:48:5: error: 'pq' was not declared in this scope; did you mean 'p'? 48 | pq.push({dist[s], s}); | ^~ | p main.cpp:56:22: error: 'v' was not declared in this scope 56 | for(auto u : v[currNode]) { | ^ main.cpp: In function 'int main()': Non zero exit status: 1

Ceva nu functioneaza?