Borderou de evaluare (job #3171145)

Utilizator tomaionutIDorando tomaionut Data 18 noiembrie 2023 13:54:54
Problema Tramvai Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:14:38: error: template argument 2 is invalid 14 | unordered_map<int, <pair<int, int> > M; | ^ main.cpp:14:38: error: template argument 5 is invalid main.cpp: In function 'std::pair<int, int> Intersectie(vrajeala, vrajeala)': main.cpp:26:1: warning: no return statement in function returning non-void [-Wreturn-type] 26 | } | ^ main.cpp: In function 'int main()': main.cpp:40:14: error: 'j' was not declared in this scope 40 | for (j = i + 1; j <= n; j++) | ^ main.cpp:43:28: error: 'INF' was not declared in this scope 43 | if (P.first != INF and P.second != INF) | ^~~ main.cpp:45:17: error: 'M' was not declared in this scope 45 | M[Codifica(i, j)] = M[Codifica(j, i)] = P; | ^ main.cpp:49:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 49 | for (i = 0; i < statie.size() - 1; i++) | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:50:14: error: 'j' was not declared in this scope 50 | for (j = i + 1; j < statie.size(); j++) | ^ main.cpp:51:44: error: 'M' was not declared in this scope 51 | D[statie[i]][statie[j]] = Dist(M[statie[i]], M[statie[j]]); | ^ main.cpp:51:39: error: 'Dist' was not declared in this scope; did you mean 'dist'? 51 | D[statie[i]][statie[j]] = Dist(M[statie[i]], M[statie[j]]); | ^~~~ | dist main.cpp:30:28: warning: unused variable 'dist' [-Wunused-variable] 30 | int i, x1, x2, y1, y2, dist; | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?