Borderou de evaluare (job #794470)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Paznici (clasele 11-12) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 13 nov. 2024 16:38:26 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:63:22: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
63 | for (const auto& [cod_firma, intervale] : firme) {
| ^
main.cpp:64:46: error: binding reference of type 'std::vector<Interval>&' to 'std::tuple_element<1, const std::pair<const int, std::vector<Interval> > >::type' discards qualifiers
64 | int acoperire = calculeaza_acoperire(intervale, A, B);
| ^~~~~~~~~
main.cpp:16:44: note: initializing argument 1 of 'int calculeaza_acoperire(std::vector<Interval>&, int, int)'
16 | int calculeaza_acoperire(vector<Interval>& intervale, int A, int B) {
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~