Borderou de evaluare (job #810538)

Utilizator avatar Crimz0n25 Stefan Tanas Crimz0n25 IP ascuns
Problemă Trei cifre consecutive Compilator cpp-32
Rundă lasm_21_02_2025_clasa11 Status evaluat
Dată 21 feb. 2025 17:25:14 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void generate(int, long long int, int, int)': main.cpp:24:9: error: reference to 'count' is ambiguous 24 | count++; | ^~~~~ In file included from /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/algorithm:61, from main.cpp:4: /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/stl_algo.h:4025:5: note: candidates are: 'template<class _IIter, class _Tp> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)' 4025 | count(_InputIterator __first, _InputIterator __last, const _Tp& __value) | ^~~~~ main.cpp:15:11: note: 'long long int count' 15 | long long count = 0; // Global counter for sequence numbers | ^~~~~ main.cpp:25:13: error: reference to 'count' is ambiguous 25 | if (count == positions_needed[current_position_index]) { | ^~~~~ /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/stl_algo.h:4025:5: note: candidates are: 'template<class _IIter, class _Tp> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)' 4025 | count(_InputIterator __first, _InputIterator __last, const _Tp& __value) | ^~~~~ main.cpp:15:11: note: 'long long int count' 15 | long long count = 0; // Global counter for sequence numbers | ^~~~~