Borderou de evaluare (job #3283651)

Utilizator aeru1Ianos Alex-Marian aeru1 Data 10 martie 2025 09:48:49
Problema Autobuze3 Status done
Runda Arhiva ICPC Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int Union(int, int, std::vector<int>&, std::vector<int>&)': main.cpp:21:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 21 | else | ^~~~ main.cpp:23:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 23 | if(Depth[Root2]==Depth[Root1]) | ^~ main.cpp:25:1: warning: no return statement in function returning non-void [-Wreturn-type] 25 | } | ^ main.cpp: In function 'void solve()': main.cpp:31:29: error: wrong number of template arguments (1, should be 2) 31 | vector<pair<pair<int,int>>> Muchii; | ^~ In file included from /usr/include/c++/12.2.1/bits/stl_algobase.h:64, from /usr/include/c++/12.2.1/bits/specfun.h:45, from /usr/include/c++/12.2.1/cmath:1935, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:41, from main.cpp:1: /usr/include/c++/12.2.1/bits/stl_pair.h:185:12: note: provided for 'template<class _T1, class _T2> struct std::pair' 185 | struct pair | ^~~~ main.cpp:31:31: error: template argument 1 is invalid 31 | vector<pair<pair<int,int>>> Muchii; | ^ main.cpp:31:31: error: template argument 2 is invalid main.cpp:36:16: error: request for member 'push_back' in 'Muchii', which is of non-class type 'int' 36 | Muchii.push_back({c,{a,b}}); | ^~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?