Borderou de evaluare (job #2960898)
Utilizator | Data | 5 ianuarie 2023 11:36:21 | |
---|---|---|---|
Problema | Johnie | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:16:39: error: 'list' has not been declared
16 | void euclidean_path(const int start, list<int>& path){
| ^~~~
main.cpp:16:43: error: expected ',' or '...' before '<' token
16 | void euclidean_path(const int start, list<int>& path){
| ^
main.cpp:46:40: error: 'list' has not been declared
46 | void euclidean_cycle(const int start, list<int>& cycle){
| ^~~~
main.cpp:46:44: error: expected ',' or '...' before '<' token
46 | void euclidean_cycle(const int start, list<int>& cycle){
| ^
main.cpp:68:9: error: 'list' was not declared in this scope
68 | vector<list<int>> getEuclideanPaths()
| ^~~~
main.cpp:5:1: note: 'std::list' is defined in header '<list>'; did you forget to '#include <list>'?
4 | #include <vector>
+++ |+#include <list>
5 |
main.cpp:68:17: error: template argument 1 is invalid
68 | vector<list<int>> getEuclideanPaths()
| ^~
main.cpp:68:17: error: template argument 2 is invalid
main.cpp: In member function 'void Graph::euclidean_path(int, int)':
main.cpp:42:3: error: 'path' was not declared in this scope
42 | path.push_back(node);
| ^~~~
main.cpp: In member function 'void Graph::euclidean_cycle(int, int)':
main.cpp:56:4: error: 'cycle' was not declared in this scope
56 | cycle.push_back(node);
| ^~~~~
main.cpp: In member function 'int Graph::getEuclideanPaths()':
main.cpp:71:10: error: 'list' was not declared in this scope
71 | vector<list<int>> paths(nr_paths);
| ^~~~
main.cpp:71:10: note: 'std::list' is defined in header '<list>'; did you forget to '#include <list>'?
main.cpp:71:18: error: template argument 1 is invalid
71 | vector<list<int>> paths(nr_paths);
| ^~
main.cpp:71:18: error: template argument 2 is invalid
main.cpp:75:13: error: invalid types 'int[int]' for array subscript
75 | if (paths[i].empty()) {
| ^
main.cpp:79:10: error: invalid types 'int[int]' for array subscript
79 | paths[i].push_back(start);
| ^
main.cpp:80:32: error: invalid types 'int[int]' for array subscript
80 | euclidean_path(start, paths[i]);
| ^
main.cpp:86:26: error: invalid types 'int[int]' for array subscript
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !