Problem cuberoot
User IWKR
Submission Time 2023-07-10 15:39:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cuberoot.cpp: In function ‘int32_t main()’:
cuberoot.cpp:13:16: error: reference to ‘array’ is ambiguous
13 | cin >> array[i];
| ^~~~~
In file included from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/functional:54,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from cuberoot.cpp:1:
/usr/include/c++/9/array:94:12: note: candidates are: ‘template<class _Tp, long unsigned int _Nm> struct std::array’
94 | struct array
| ^~~~~
cuberoot.cpp:6:5: note: ‘long long int array [100000]’
6 | int array[100000];
| ^~~~~
cuberoot.cpp:14:20: error: reference to ‘array’ is ambiguous
14 | num = cbrt(array[i]);
| ^~~~~
I