Problem | uniquenumbers |
---|---|
User | Logout |
Submission Time | 2023-11-08 14:50:49 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:11:36: error: request for member ‘length’ in ‘numberArray’, which is of non-class type ‘long long int [totalNumbers]’
11 | for (int a = 0; a <= numberArray.length; a++){
| ^~~~~~
uniquenumbers.cpp:13:5: error: reference to ‘unique’ is ambiguous
13 | unique += 1;
| ^~~~~~
In file included from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from uniquenumbers.cpp:1:
/usr/include/c++/9/pstl/glue_algorithm_defs.h:234:1: note: candidates are: ‘template<class _ExecutionPolicy, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> std::unique(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator)’
234 | unique(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last);