Borderou de evaluare (job #3200316)

Utilizator conttest12cont de test conttest12 Data 4 februarie 2024 12:32:15
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 'int query(int, int)': main.cpp:41:18: error: 'max' was not declared in this scope 41 | result = max(result, batog[firstInterval++]); | ^~~ main.cpp:41:18: 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: In function 'int main()': main.cpp:48:5: error: 'fin' was not declared in this scope; did you mean 'sin'? 48 | fin>>vLength; | ^~~ | sin main.cpp:59:17: error: 'fout' was not declared in this scope 59 | fout<<query(a, b)<<'\n'; | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?