Problem brick
User VNHbest
Submission Time 2024-01-27 08:43:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

brick.cpp:11:16: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
11 | long long dp[n + 1];
| ^
| yn
brick.cpp:13:3: error: expected unqualified-id before ‘for’
13 | for (long long j = n - 1; j >= 0; j--) {
| ^~~
brick.cpp:13:29: error: ‘j’ does not name a type; did you mean ‘jn’?
13 | for (long long j = n - 1; j >= 0; j--) {
| ^
| jn
brick.cpp:13:37: error: ‘j’ does not name a type; did you mean ‘jn’?
13 | for (long long j = n - 1; j >= 0; j--) {
| ^
| jn
brick.cpp:22:1: error: expected declaration before ‘}’ token
22 | }
| ^