Žiema fantazijos karalystėje
Taškai: 0
Compile: FAIL
ziema.cpp: In function ‘int main()’: ziema.cpp:31:21: error: template argument 2 is invalid vector <pair<int,>> edges; ^ ziema.cpp:31:22: error: template argument 1 is invalid vector <pair<int,>> edges; ^ ziema.cpp:31:22: error: template argument 2 is invalid ziema.cpp:32:17: error: request for member ‘begin’ in ‘edges’, which is of non-class type ‘int’ sort (edges.begin(),edges.end()); ^ ziema.cpp:32:31: error: request for member ‘end’ in ‘edges’, which is of non-class type ‘int’ sort (edges.begin(),edges.end()); ^ ziema.cpp:33:14: error: ‘n’ was not declared in this scope DSU dsu (n); ^ ziema.cpp:34:19: error: ‘begin’ was not declared in this scope for (auto e : edges){ ^ ziema.cpp:34:19: note: suggested alternatives: In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:94:0, from ziema.cpp:2: /usr/include/c++/5/valarray:1206:5: note: ‘std::begin’ begin(const valarray<_Tp>& __va) ^ /usr/include/c++/5/valarray:1206:5: note: ‘std::begin’ ziema.cpp:34:19: error: ‘end’ was not declared in this scope for (auto e : edges){ ^ ziema.cpp:34:19: note: suggested alternatives: In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:94:0, from ziema.cpp:2: /usr/include/c++/5/valarray:1226:5: note: ‘std::end’ end(const valarray<_Tp>& __va) ^ /usr/include/c++/5/valarray:1226:5: note: ‘std::end’ ziema.cpp:38:16: error: ‘struct DSU’ has no member named ‘suma’ if(dsu.suma(u,v))continue; ^ ziema.cpp:40:9: error: ‘S’ was not declared in this scope S+=w; ^
nr. | result | time | message |
---|