Borderou de evaluare (job #3215131)
Utilizator | Data | 14 martie 2024 18:14:43 | |
---|---|---|---|
Problema | Connect | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In static member function 'static void main()::dsu::undo()':
main.cpp:65:29: error: invalid use of member 'main()::dsu::dsuSave' in static member function
65 | if(!dsuSave.empty()) {
| ^~~~~~~
main.cpp:31:32: note: declared here
31 | vector<save_t> dsuSave;
| ^~~~~~~
main.cpp:66:41: error: invalid use of member 'main()::dsu::dsuSave' in static member function
66 | int u = dsuSave.back().u, v = dsuSave.back().v;
| ^~~~~~~
main.cpp:31:32: note: declared here
31 | vector<save_t> dsuSave;
| ^~~~~~~
main.cpp:67:33: error: invalid use of member 'main()::dsu::dsuSave' in static member function
67 | dsuSave.pop_back();
| ^~~~~~~
main.cpp:31:32: note: declared here
31 | vector<save_t> dsuSave;
| ^~~~~~~
main.cpp:68:41: error: 'v' was not declared in this scope
68 | if(u != v) {
| ^
main.cpp:69:41: error: invalid use of member 'main()::dsu::up' in static member function
69 | up[u] = u;
| ^~
main.cpp:25:29: note: declared here
25 | vector<int> up, sz;
| ^~
main.cpp:70:41: error: invalid use of member 'main()::dsu::sz' in static member function
70 | sz[v] -= sz[u];
| ^~
main.cpp:25:33: note: declared here
25 | vector<int> up, sz;
| ^~
main.cpp:70:50: error: invalid use of member 'main()::dsu::sz' in static member function
70 | sz[v] -= sz[u];
| ^~
main.cpp:25:33: note: declared here
25 | vector<int> up, sz;
| ^~
main.cpp:71:41: error: invalid use of member 'main()::dsu::c' in static member function
71 | c++;
| ^
main.cpp:24:24: note: declared here
24 | int n, c;
| ^
main.cpp: In static member function 'static int main()::dsu::components()':
main.cpp:76:32: error: invalid use of member 'main()::dsu::c' in static member function
76 | return c;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !