Borderou de evaluare (job #3346081)

Utilizator TomMMMMatei Toma TomMMM Data 12 martie 2026 14:00:26
Problema Autobuze3 Status done
Runda Arhiva ICPC Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void sort_by_w()': main.cpp:52:18: error: 'sort' was not declared in this scope; did you mean 'short'? 52 | void sort_by_w(){sort(e, e + m, by_w);} | ^~~~ | short main.cpp: At global scope: main.cpp:55:8: error: 'vector' was not declared in this scope 55 | vector<vector<int>> G; | ^~~~~~ main.cpp:2:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? 1 | #include <fstream> +++ |+#include <vector> 2 | #include <string> main.cpp:55:8: error: 'vector' was not declared in this scope 55 | vector<vector<int>> G; | ^~~~~~ main.cpp:55:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:55:8: error: 'vector' was not declared in this scope main.cpp:55:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:55:8: error: 'vector' was not declared in this scope main.cpp:55:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:55:8: error: 'vector' was not declared in this scope main.cpp:55:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:55:8: error: 'vector' was not declared in this scope main.cpp:55:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:55:8: error: 'vector' was not declared in this scope main.cpp:55:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:55:8: error: 'vector' was not declared in this scope main.cpp:55:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:55:8: error: 'vector' was not declared in this scope main.cpp:55:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:55:1: error: 'vector' does not name a type 55 | vector<vector<int>> G; | ^~~~~~ main.cpp: In function 'int select_edges()': main.cpp:58:5: error: 'G' was not declared in this scope 58 | G.resize(n + 1); | ^ main.cpp: At global scope: main.cpp:72:6: error: variable or field 'pour_into' declared void 72 | void pour_into(vector<int>& dest, vector<int> &sour){ | ^~~~~~~~~ main.cpp:72:16: error: 'vector' was not declared in this scope 72 | void pour_into(vector<int>& dest, vector<int> &sour){ | ^~~~~~ main.cpp:72:16: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? main.cpp:72:23: error: expected primary-expression before 'int' 72 | void pour_into(vector<int>& dest, vector<int> &sour){ | ^~~ main.cpp:72:35: error: 'vector' was not declared in this scope Non zero exit status: 1

Ceva nu functioneaza?