Problem brick
User CZHT
Submission Time 2026-04-18 10:52:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp: In function ‘int main()’:
brick.cpp:12:22: error: array must be initialized with a brace-enclosed initializer
12 | int a[n - count] = i;
| ^
brick.cpp:17:14: error: expected ‘;’ before ‘while’
17 | cout << a[0]
| ^
| ;
18 | while (counting < n) {
| ~~~~~