| Problem | brick |
|---|---|
| User | GanJaeHan |
| Submission Time | 2026-03-04 16:14:19 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
brick.cpp: In function ‘int main()’:
brick.cpp:15:3: error: expected primary-expression before ‘while’
15 | while (!stack.empty() && stack.back() <= a[i]{
| ^~~~~
brick.cpp:15:3: error: expected ‘}’ before ‘while’
brick.cpp:14:29: note: to match this ‘{’
14 | for (int i = 0; i < n; i++({
| ^
brick.cpp:14:30: error: expected ‘)’ before ‘while’
14 | for (int i = 0; i < n; i++({
| ~ ^
| )
15 | while (!stack.empty() && stack.back() <= a[i]{
| ~~~~~
brick.cpp:18:24: error: expected ‘)’ before ‘;’ token
18 | stack.push_back(a[i]);
| ^
| )
brick.cpp:14:6: note: to match this ‘(’
14 | for (int i = 0; i < n; i++({
| ^
brick.cpp: At global scope:
brick.cpp:20:2: error: expected unqua