| Problem | brick |
|---|---|
| User | 2026YuClaireKelai |
| Submission Time | 2026-11-11 10:00:05 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
brick.cpp: In function ‘int32_t main()’:
brick.cpp:11:44: error: invalid types ‘int[int]’ for array subscript
11 | for ( int i = 0; i < n; ++i) cin >> a[i];
| ^
brick.cpp:14:44: error: invalid types ‘int[int]’ for array subscript
14 | while (!s.empty() && s.top() <= a[i]) s.pop();
| ^
brick.cpp:15:19: error: invalid types ‘int[int]’ for array subscript
15 | s.push(a[i]);
| ^