Problem | brick |
---|---|
User | Duk168 |
Submission Time | 2024-01-01 15:35:26 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
brick.cpp: In function ‘int main()’:
brick.cpp:39:41: error: invalid initialization of reference of type ‘const std::vector<long long int>&’ from expression of type ‘std::vector<int>’
39 | vector<int> resultStack = findStack(heights);
| ^~~~~~~
brick.cpp:8:54: note: in passing argument 1 of ‘std::vector<long long int> findStack(const std::vector<long long int>&)’
8 | vector<long long> findStack(const vector<long long>& heights) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~