Borderou de evaluare (job #3127408)
Utilizator | Data | 7 mai 2023 15:17:40 | |
---|---|---|---|
Problema | Vila 2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:13:36: error: reference to 'distance' is ambiguous
13 | input >> number_of_elements >> distance;
| ^~~~~~~~
In file included from /usr/include/c++/12.2.1/filesystem:45,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:129,
from main.cpp:1:
/usr/include/c++/12.2.1/bits/fs_path.h:1429:1: note: candidates are: 'std::ptrdiff_t std::distance(filesystem::__cxx11::path::iterator, filesystem::__cxx11::path::iterator)'
1429 | distance(filesystem::path::iterator __first, filesystem::path::iterator __last)
| ^~~~~~~~
In file included from /usr/include/c++/12.2.1/bits/stl_algobase.h:66,
from /usr/include/c++/12.2.1/bits/specfun.h:45,
from /usr/include/c++/12.2.1/cmath:1935,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:41:
/usr/include/c++/12.2.1/bits/stl_iterator_base_funcs.h:147:5: note: 'template<class _InputIterator> constexpr typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::distance(_InputIterator, _InputIterator)'
147 | distance(_InputIterator __first, _InputIterator __last)
| ^~~~~~~~
main.cpp:9:25: note: 'int distance'
9 | int number_of_elements, distance, difference, array[100005];
| ^~~~~~~~
main.cpp:16:18: error: reference to 'array' is ambiguous
16 | input >> array[i];
| ^~~~~
In file included from /usr/include/c++/12.2.1/functional:54,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:71:
/usr/include/c++/12.2.1/tuple:1595:45: note: candidates are: 'template<class _Tp, long unsigned int _Nm> struct std::array'
1595 | template<typename _Tp, size_t _Nm> struct array;
| ^~~~~
main.cpp:9:47: note: 'int array [100005]'
9 | int number_of_elements, distance, difference, array[100005];
| ^~~~~
main.cpp:17:47: error: reference to 'array' is ambiguous
17 | while (!(smallest_numbers.empty()) && array[i] < smallest_numbers.back())
| ^~~~~
/usr/include/c++/12.2.1/tuple:1595:45: note: candidates are: 'template<class _Tp, long unsigned int _Nm> struct std::array'
1595 | template<typename _Tp, size_t _Nm> struct array;
| ^~~~~
main.cpp:9:47: note: 'int array [100005]'
9 | int number_of_elements, distance, difference, array[100005];
| ^~~~~
main.cpp:21:36: error: reference to 'array' is ambiguous
21 | smallest_numbers.push_back(array[i]);
| ^~~~~
/usr/include/c++/12.2.1/tuple:1595:45: note: candidates are: 'template<class _Tp, long unsigned int _Nm> struct std::array'
1595 | template<typename _Tp, size_t _Nm> struct array;
| ^~~~~
main.cpp:9:47: note: 'int array [100005]'
9 | int number_of_elements, distance, difference, array[100005];
| ^~~~~
main.cpp:22:46: error: reference to 'array' is ambiguous
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !