Problem | cuberoot |
---|---|
User | IWKR |
Submission Time | 2023-07-10 15:38:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
cuberoot.cpp: In function ‘int main()’:
cuberoot.cpp:11:16: error: reference to ‘array’ is ambiguous
11 | 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:4:11: note: ‘long long int array [100000]’
4 | long long array[100000];
| ^~~~~
cuberoot.cpp:12:20: error: reference to ‘array’ is ambiguous
12 | num = cbrt(array[i]);
| ^