Problem | brick |
---|---|
User | evan |
Submission Time | 2025-06-17 16:40:02 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
brick.cpp: In function ‘int main()’:
brick.cpp:6:14: error: ‘N’ was not declared in this scope
6 | int heights[N];
| ^
brick.cpp:8:10: error: ‘heights’ was not declared in this scope
8 | cin >> heights[i];
| ^~~~~~~
brick.cpp:11:11: error: ‘heights’ was not declared in this scope
11 | stk.push(heights[0]);
| ^~~~~~~
brick.cpp:19:14: error: no match for ‘operator[]’ (operand types are ‘std::stack<int>’ and ‘int’)
19 | cout << stk[i];
| ^