Borderou de evaluare (job #3185252)
Utilizator | Data | 18 decembrie 2023 17:02:29 | |
---|---|---|---|
Problema | Ghizi | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'bool Graph::BFS(int, int, std::vector<int>&)':
main.cpp:29:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
29 | for (int ind = 0; ind < graph[u].size(); ind++) {
| ~~~~^~~~~~~~~~~~~~~~~
main.cpp: In member function 'int Graph::FordFulkerson(int, int)':
main.cpp:50:29: error: 'INT_MAX' was not declared in this scope
50 | int path_flow = INT_MAX;
| ^~~~~~~
main.cpp:6:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
5 | #include <unordered_map>
+++ |+#include <climits>
6 |
main.cpp: In function 'int main()':
main.cpp:73:20: error: variable 'std::ifstream f' has initializer but incomplete type
73 | std::ifstream f("ghizi.in");
| ^
main.cpp:74:22: error: variable 'std::ofstream out' has initializer but incomplete type
74 | std::ofstream out("ghizi.out");
| ^
main.cpp:77:36: error: variable 'std::istringstream iss' has initializer but incomplete type
77 | std::istringstream iss(line);
| ^
main.cpp:91:36: error: variable 'std::istringstream iss' has initializer but incomplete type
91 | std::istringstream iss(line);
| ^
main.cpp:111:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
111 | for (int i = 0; i < sol.size(); i++) {
| ~~^~~~~~~~~~~~
main.cpp:84:9: warning: unused variable 'k' [-Wunused-variable]
84 | int k = aux[1];
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !