Problem | shamelessad3 |
---|---|
User | NoobMugger420 |
Submission Time | 2024-12-07 11:31:20 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
shamelessad3.cpp: In function ‘int main()’:
shamelessad3.cpp:40:31: error: invalid initialization of reference of type ‘std::vector<int>&’ from expression of type ‘std::vector<long long int>’
40 | cout << largestRectangleArea(array);
| ^~~~~
shamelessad3.cpp:5:39: note: in passing argument 1 of ‘int largestRectangleArea(std::vector<int>&)’
5 | int largestRectangleArea(vector<int>& heights) {
| ~~~~~~~~~~~~~^~~~~~~