Borderou de evaluare (job #3160603)
Utilizator | Data | 24 octombrie 2023 17:51:50 | |
---|---|---|---|
Problema | Range minimum query | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:32: error: redefinition of 'int p'
8 | int n, p, i, j, st, dr, minim, p, e, len;
| ^
main.cpp:8:8: note: 'int p' previously declared here
8 | int n, p, i, j, st, dr, minim, p, e, len;
| ^
main.cpp: In function 'int main()':
main.cpp:11:13: error: 'm' was not declared in this scope; did you mean 'tm'?
11 | fin>>n>>m;
| ^
| tm
main.cpp:29:12: error: no match for 'operator>' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'int')
29 | fin>st>>dr;
| ~~~^~~~~~~
| | |
| | int
| std::ifstream {aka std::basic_ifstream<char>}
In file included from /usr/include/c++/12.2.1/string:47,
from /usr/include/c++/12.2.1/bits/locale_classes.h:40,
from /usr/include/c++/12.2.1/bits/ios_base.h:41,
from /usr/include/c++/12.2.1/ios:42,
from /usr/include/c++/12.2.1/istream:38,
from /usr/include/c++/12.2.1/fstream:38,
from main.cpp:1:
/usr/include/c++/12.2.1/bits/stl_iterator.h:579:5: note: candidate: 'template<class _IteratorL, class _IteratorR> requires three_way_comparable_with<_IteratorR, _IteratorL, std::partial_ordering> constexpr std::compare_three_way_result_t<_IteratorL, _IteratorR> std::operator<=>(const reverse_iterator<_IteratorL>&, const reverse_iterator<_IteratorR>&)' (reversed)
579 | operator<=>(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/stl_iterator.h:579:5: note: template argument deduction/substitution failed:
main.cpp:29:17: note: mismatched types 'const std::reverse_iterator<_IteratorL>' and 'int'
29 | fin>st>>dr;
| ^~
/usr/include/c++/12.2.1/bits/stl_iterator.h:1668:5: note: candidate: 'template<class _IteratorL, class _IteratorR> requires three_way_comparable_with<_IteratorR, _IteratorL, std::partial_ordering> constexpr std::compare_three_way_result_t<_IteratorL, _IteratorR> std::operator<=>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' (reversed)
1668 | operator<=>(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/stl_iterator.h:1668:5: note: template argument deduction/substitution failed:
main.cpp:29:17: note: mismatched types 'const std::move_iterator<_IteratorL>' and 'int'
29 | fin>st>>dr;
| ^~
In file included from /usr/include/c++/12.2.1/bits/basic_string.h:47,
from /usr/include/c++/12.2.1/string:53:
/usr/include/c++/12.2.1/string_view:561:5: note: candidate: 'template<class _CharT, class _Traits> constexpr decltype (__char_traits_cmp_cat<_Traits>(0)) std::operator<=>(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)' (reversed)
561 | operator<=>(basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/12.2.1/string_view:561:5: note: template argument deduction/substitution failed:
main.cpp:29:17: note: mismatched types 'std::basic_string_view<_CharT, _Traits>' and 'int'
29 | fin>st>>dr;
| ^~
/usr/include/c++/12.2.1/bits/basic_string.h:3627:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> constexpr decltype (__char_traits_cmp_cat<_Traits>(0)) std::operator<=>(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)' (reversed)
3627 | operator<=>(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !