Borderou de evaluare (job #3032656)

Utilizator tonealexandruTone Alexandru tonealexandru Data 22 martie 2023 16:08:24
Problema Arbori de intervale Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void update(int, int, int, int, int)': main.cpp:9:9: error: 'st' was not declared in this scope; did you mean 'std'? 9 | st[node]=val; | ^~ | std main.cpp:14:44: error: expected ';' before 'else' 14 | update(node*2, from, mid, pos, val) | ^ | ; 15 | else | ~~~~ main.cpp: In function 'int query(int, int, int, int, int)': main.cpp:25:16: error: 'st' was not declared in this scope; did you mean 'std'? 25 | return st[node]; | ^~ | std main.cpp:31:14: error: 'max' was not declared in this scope 31 | smax=max(smax, s); | ^~~ main.cpp:31:14: note: suggested alternatives: In file included from /usr/include/c++/12.2.1/algorithm:61, from main.cpp:3: /usr/include/c++/12.2.1/bits/stl_algo.h:5756:5: note: 'std::max' 5756 | max(initializer_list<_Tp> __l, _Compare __comp) | ^~~ In file included from /usr/include/c++/12.2.1/algorithm:63: /usr/include/c++/12.2.1/bits/ranges_algo.h:3011:29: note: 'std::ranges::max' 3011 | inline constexpr __max_fn max{}; | ^~~ main.cpp:36:14: error: 'max' was not declared in this scope 36 | smax=max(smax, s); | ^~~ main.cpp:36:14: note: suggested alternatives: /usr/include/c++/12.2.1/bits/stl_algo.h:5756:5: note: 'std::max' 5756 | max(initializer_list<_Tp> __l, _Compare __comp) | ^~~ /usr/include/c++/12.2.1/bits/ranges_algo.h:3011:29: note: 'std::ranges::max' 3011 | inline constexpr __max_fn max{}; | ^~~ Non zero exit status: 1

Ceva nu functioneaza?