Borderou de evaluare (job #2864910)

Utilizator spooderRares Lazea spooder Data 8 martie 2022 12:19:11
Problema Range minimum query Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:35:58: warning: capture of variable 'l' with non-automatic storage duration 35 | fout << min(matrice[v[l]][x], matrice[v[l]][y - (1 << [l]) + 1]) << '\n'; | ^ main.cpp:10:22: note: 'int l' declared here 10 | int v[100010], x, y, l; | ^ main.cpp: In lambda function: main.cpp:35:60: error: expected '{' before ')' token 35 | fout << min(matrice[v[l]][x], matrice[v[l]][y - (1 << [l]) + 1]) << '\n'; | ^ main.cpp: In function 'int main()': main.cpp:35:54: error: no match for 'operator<<' (operand types are 'int' and 'main()::<lambda()>') 35 | fout << min(matrice[v[l]][x], matrice[v[l]][y - (1 << [l]) + 1]) << '\n'; In file included from /usr/include/c++/10/string:55, from /usr/include/c++/10/bits/locale_classes.h:40, from /usr/include/c++/10/bits/ios_base.h:41, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from main.cpp:1: /usr/include/c++/10/bits/basic_string.h:6468:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)' 6468 | operator<<(basic_ostream<_CharT, _Traits>& __os, | ^~~~~~~~ /usr/include/c++/10/bits/basic_string.h:6468:5: note: template argument deduction/substitution failed: main.cpp:35:60: note: mismatched types 'std::basic_ostream<_CharT, _Traits>' and 'int' 35 | fout << min(matrice[v[l]][x], matrice[v[l]][y - (1 << [l]) + 1]) << '\n'; | ^ In file included from /usr/include/c++/10/bits/ios_base.h:46, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from main.cpp:1: /usr/include/c++/10/system_error:262:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::error_code&)' 262 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e) | ^~~~~~~~ /usr/include/c++/10/system_error:262:5: note: template argument deduction/substitution failed: main.cpp:35:60: note: mismatched types 'std::basic_ostream<_CharT, _Traits>' and 'int' 35 | fout << min(matrice[v[l]][x], matrice[v[l]][y - (1 << [l]) + 1]) << '\n'; | ^ In file included from /usr/include/c++/10/iostream:39, from main.cpp:1: /usr/include/c++/10/ostream:506:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, _CharT)' 506 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) | ^~~~~~~~ /usr/include/c++/10/ostream:506:5: note: template argument deduction/substitution failed: main.cpp:35:60: note: mismatched types 'std::basic_ostream<_CharT, _Traits>' and 'int' 35 | fout << min(matrice[v[l]][x], matrice[v[l]][y - (1 << [l]) + 1]) << '\n'; | ^ In file included from /usr/include/c++/10/iostream:39, Non zero exit status: 1

Ceva nu functioneaza?