Problem | typicalstairs |
---|---|
User | Andrew |
Submission Time | 2024-11-17 16:56:27 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
typicalstairs.cpp: In function ‘int binarySearch(int*, int, int, int)’:
typicalstairs.cpp:4:24: error: missing template arguments after ‘array<...auto...>’
4 | sort(arr,arr + sizeof(array) / sizeof(array[0]));
| ^~~~~
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 typicalstairs.cpp:1:
/usr/include/c++/9/array:94:12: note: ‘template<class _Tp, long unsigned int _Nm> struct std::array’ declared here
94 | struct array
| ^~~~~
typicalstairs.cpp:4:40: error: missing template arguments after ‘array<...auto...>’
4 | sort(arr,arr + sizeof(array) / sizeof(array[0]));
|