Borderou de evaluare (job #3150727)

Utilizator Laurentiu_BTarabic Laurentiu Gabriel Laurentiu_B Data 18 septembrie 2023 09:40:48
Problema Amici2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:56:16: error: no matching function for call to 'DSU::init(int&)' 56 | dsu.init(n); | ~~~~~~~~^~~ main.cpp:14:9: note: candidate: 'void DSU::init()' 14 | void init() | ^~~~ main.cpp:14:9: note: candidate expects 0 arguments, 1 provided main.cpp:59:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 59 | for(int j=0;j<a[i].size();j++) | ~^~~~~~~~~~~~ main.cpp:78:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 78 | for(int i=0;i<b[x].size();i++) | ~^~~~~~~~~~~~ main.cpp:88:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 88 | for(int i=0;i<b[j].size();i++) | ~^~~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?