Borderou de evaluare (job #2944369)

Utilizator cadmium_Voicu Mihai-Valeriu cadmium_ Data 22 noiembrie 2022 14:29:06
Problema Pisici Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void dfs(int, int)': main.cpp:24:12: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' 24 | for(auto [x, w] : g[node]) { | ^ main.cpp:2:25: error: cannot convert 'std::vector<std::pair<long long int, int> >::iterator' to 'void*' 2 | #define all(x) (x).begin(),(x).end() | ~~~~~~~~~^~ | | | std::vector<std::pair<long long int, int> >::iterator main.cpp:29:9: note: in expansion of macro 'all' 29 | qsort(all(v), greater<pii>()); | ^~~ In file included from /usr/include/c++/10/bits/std_abs.h:38, from /usr/include/c++/10/cmath:47, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41, from main.cpp:1: /usr/include/stdlib.h:830:26: note: initializing argument 1 of 'void qsort(void*, size_t, size_t, __compar_fn_t)' 830 | extern void qsort (void *__base, size_t __nmemb, size_t __size, | ~~~~~~^~~~~~ main.cpp:32:12: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' 32 | for(auto [x, add] : v) | ^ main.cpp: In function 'void reroot(int, int, ll, ll)': main.cpp:43:12: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' 43 | for(auto [x, w] : g[node]) { | ^ main.cpp:2:25: error: cannot convert 'std::vector<std::pair<long long int, int> >::iterator' to 'void*' 2 | #define all(x) (x).begin(),(x).end() | ~~~~~~~~~^~ | | | std::vector<std::pair<long long int, int> >::iterator main.cpp:47:9: note: in expansion of macro 'all' 47 | qsort(all(v), greater<pii>()); | ^~~ In file included from /usr/include/c++/10/bits/std_abs.h:38, from /usr/include/c++/10/cmath:47, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41, from main.cpp:1: /usr/include/stdlib.h:830:26: note: initializing argument 1 of 'void qsort(void*, size_t, size_t, __compar_fn_t)' 830 | extern void qsort (void *__base, size_t __nmemb, size_t __size, | ~~~~~~^~~~~~ main.cpp:53:10: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' 53 | auto [plus, atr] = v[i]; | ^ main.cpp:65:10: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' 65 | auto [plus, atr] = v[i]; | ^ main.cpp:75:10: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' 75 | auto [c, x] = v[i]; | ^ Non zero exit status: 1

Ceva nu functioneaza?